mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Removed unneeded reference
This commit is contained in:
parent
5fe227b874
commit
5bff6d63f2
@ -1,7 +1,5 @@
|
|||||||
package com.gmail.nossr50.commands.party;
|
package com.gmail.nossr50.commands.party;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
@ -177,9 +175,7 @@ public class PartyCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("kick")) {
|
else if (args[0].equalsIgnoreCase("kick")) {
|
||||||
if (party.getLeader().equals(playerName)) {
|
if (party.getLeader().equals(playerName)) {
|
||||||
List<String> members = party.getMembers();
|
if (!party.getMembers().contains(args[1])) {
|
||||||
|
|
||||||
if (!members.contains(args[1])) {
|
|
||||||
player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] {args[1]}));
|
player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] {args[1]}));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -202,9 +198,7 @@ public class PartyCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
else if (args[0].equalsIgnoreCase("owner")) {
|
else if (args[0].equalsIgnoreCase("owner")) {
|
||||||
if (party.getLeader().equals(playerName)) {
|
if (party.getLeader().equals(playerName)) {
|
||||||
List<String> members = party.getMembers();
|
if (!party.getMembers().contains(args[1])) {
|
||||||
|
|
||||||
if (!members.contains(args[1])) {
|
|
||||||
player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] {args[1]}));
|
player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] {args[1]}));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user