diff --git a/src/main/java/me/jakedadream/ParadisuPlugin/commands/snwcommands.java b/src/main/java/me/jakedadream/ParadisuPlugin/commands/snwcommands.java index 60cabc5..30b4126 100644 --- a/src/main/java/me/jakedadream/ParadisuPlugin/commands/snwcommands.java +++ b/src/main/java/me/jakedadream/ParadisuPlugin/commands/snwcommands.java @@ -633,27 +633,24 @@ public boolean onCommand(CommandSender sender, Command cmd, String label, String String visitors = ""; Integer onlineammount = Bukkit.getOnlinePlayers().size(); - - for (int i = 0; i < Bukkit.getOnlinePlayers().size(); i++) { - - String name = player.getName(); + for (Player p : Bukkit.getOnlinePlayers()){ + String name = p.getName(); name = name.concat(", "); - if (player.hasPermission("meta.rank.owner")) { + if (p.hasPermission("meta.rank.owner")) { owners = owners.concat(name); - } else if (player.hasPermission("meta.rank.dev")) { + } else if (p.hasPermission("meta.rank.dev")) { devs = devs.concat(name); - } else if (player.hasPermission("meta.rank.builders")) { + } else if (p.hasPermission("meta.rank.builders")) { builders = builders.concat(name); - } else if (player.hasPermission("meta.rank.staff")) { + } else if (p.hasPermission("meta.rank.staff")) { staff = staff.concat(name); - } else if (player.hasPermission("meta.rank.supporters")) { + } else if (p.hasPermission("meta.rank.supporters")) { supporters = supporters.concat(name); } else { visitors = visitors.concat(name); } - } if (owners.length() != 0){ diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 72bbf94..fdfaa76 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,5 +1,5 @@ name: ParadisuPlugin -version: 2.6.4 +version: 2.6.5 authors: [JakeDaDream, RealInstantRamen, andyinnie, _Kastle, cytocracy] main: me.jakedadream.ParadisuPlugin.paradisumain api-version: 1.16