geforkt von SteamWar/BungeeCore
Hotfix TeamCommand tp and join
Dieser Commit ist enthalten in:
Ursprung
b096f8251c
Commit
242e19adb2
@ -151,7 +151,7 @@ public class TeamCommand extends SWCommand {
|
|||||||
if(invs.size() == 1){
|
if(invs.size() == 1){
|
||||||
t = invs.get(0);
|
t = invs.get(0);
|
||||||
}else{
|
}else{
|
||||||
if(args.length != 2){
|
if(args.length != 1){
|
||||||
Message.send("TEAM_JOIN_USAGE", player);
|
Message.send("TEAM_JOIN_USAGE", player);
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
for(int inv : invs){
|
for(int inv : invs){
|
||||||
@ -164,7 +164,7 @@ public class TeamCommand extends SWCommand {
|
|||||||
|
|
||||||
for(int inv : invs){
|
for(int inv : invs){
|
||||||
Team team = Team.get(inv);
|
Team team = Team.get(inv);
|
||||||
if(team.getTeamName().equals(args[1])){
|
if(team.getTeamName().equals(args[0])){
|
||||||
t = inv;
|
t = inv;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -492,13 +492,13 @@ public class TeamCommand extends SWCommand {
|
|||||||
public void tp(ProxiedPlayer player, String... args){
|
public void tp(ProxiedPlayer player, String... args){
|
||||||
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
SteamwarUser user = SteamwarUser.get(player.getUniqueId());
|
||||||
Team team = Team.get(user.getTeam());
|
Team team = Team.get(user.getTeam());
|
||||||
if(args.length == 1){
|
if(args.length == 0){
|
||||||
if(notInTeam(player, user))
|
if(notInTeam(player, user))
|
||||||
return;
|
return;
|
||||||
tp(player, team);
|
tp(player, team);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Team targetTeam = Team.get(args[1]);
|
Team targetTeam = Team.get(args[0]);
|
||||||
if(targetTeam == null){
|
if(targetTeam == null){
|
||||||
Message.send("TEAM_TP_NO_TEAM", player);
|
Message.send("TEAM_TP_NO_TEAM", player);
|
||||||
return;
|
return;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren