mirror of
https://github.com/TotalFreedomMC/TFGuilds.git
synced 2024-12-22 16:05:00 +00:00
forgot to remove this
This commit is contained in:
parent
64c587627f
commit
d335149c3c
1 changed files with 5 additions and 23 deletions
|
@ -135,13 +135,7 @@ public class GuildCommand extends Common implements CommandExecutor, TabComplete
|
||||||
|
|
||||||
case "tp":
|
case "tp":
|
||||||
{
|
{
|
||||||
for (Player player : Bukkit.getOnlinePlayers())
|
return guild.getMembers();
|
||||||
{
|
|
||||||
if (guild.getMembers().contains(player.getName()))
|
|
||||||
{
|
|
||||||
return guild.getMembers();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
case "disband":
|
case "disband":
|
||||||
|
@ -156,15 +150,9 @@ public class GuildCommand extends Common implements CommandExecutor, TabComplete
|
||||||
|
|
||||||
case "kick":
|
case "kick":
|
||||||
{
|
{
|
||||||
for (Player player : Bukkit.getOnlinePlayers())
|
if (guild.hasModerator(sender.getName()))
|
||||||
{
|
{
|
||||||
if (guild.getOnlyMembers().contains(player.getName()))
|
return guild.getOnlyMembers();
|
||||||
{
|
|
||||||
if (guild.hasModerator(sender.getName()))
|
|
||||||
{
|
|
||||||
return guild.getOnlyMembers();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -172,15 +160,9 @@ public class GuildCommand extends Common implements CommandExecutor, TabComplete
|
||||||
case "addmod":
|
case "addmod":
|
||||||
case "setowner":
|
case "setowner":
|
||||||
{
|
{
|
||||||
for (Player player : Bukkit.getOnlinePlayers())
|
if (guild.getOwner().equals(sender.getName()))
|
||||||
{
|
{
|
||||||
if (guild.getMembers().contains(player.getName()))
|
return guild.getMembers();
|
||||||
{
|
|
||||||
if (guild.getOwner().equals(sender.getName()))
|
|
||||||
{
|
|
||||||
return guild.getMembers();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue