geforkt von SteamWar/BungeeCore
Bypass Map decision if there is only one arena
Dieser Commit ist enthalten in:
Ursprung
a9cd5e1288
Commit
624af03f08
@ -119,12 +119,16 @@ public class FightCommand extends BasicCommand {
|
|||||||
if(mode == null)
|
if(mode == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(args.length < startArg+2){
|
String map;
|
||||||
|
if(mode.getMaps().size() == 1){
|
||||||
|
map = mode.getRandomMap();
|
||||||
|
}else if(args.length < startArg+2){
|
||||||
getMaps(sender, precommand, mode);
|
getMaps(sender, precommand, mode);
|
||||||
return;
|
return;
|
||||||
|
}else{
|
||||||
|
map = getMap(sender, mode, args[startArg+1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
String map = getMap(sender, mode, args[startArg+1]);
|
|
||||||
if(map == null)
|
if(map == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren