mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
Doh, actually find what world we want to check properly with mancheckw.
This commit is contained in:
parent
132aa0cc1d
commit
6ea956b11c
@ -1952,7 +1952,17 @@ public class GroupManager extends JavaPlugin {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
auxString = "";
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
if (args[i] == null) {
|
||||
logger.warning("Bukkit gave invalid arguments array! Cmd: " + cmd.getName() + " args.length: " + args.length);
|
||||
return false;
|
||||
}
|
||||
auxString += args[i];
|
||||
if (i < (args.length - 1)) {
|
||||
auxString += " ";
|
||||
}
|
||||
}
|
||||
dataHolder = worldsHolder.getWorldData(auxString);
|
||||
|
||||
sender.sendMessage(ChatColor.YELLOW + "You have selected world '" + dataHolder.getName() + "'.");
|
||||
|
Loading…
Reference in New Issue
Block a user