mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-10-31 22:49:21 +00:00
Generics.
This commit is contained in:
parent
0b293b7a0d
commit
454a342a9a
|
@ -8,6 +8,7 @@ import org.bukkit.command.CommandSender;
|
|||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@CommandPermissions(level = AdminLevel.SUPER, source = SourceType.BOTH)
|
||||
public class Command_findip extends FreedomCommand {
|
||||
|
@ -28,10 +29,10 @@ public class Command_findip extends FreedomCommand {
|
|||
PlayerRank rank = PlayerRank.fromSender(sender);
|
||||
PlayerRank targetRank = PlayerRank.fromSender(player);
|
||||
|
||||
ArrayList<String> ipsToShow = (ArrayList<String>) PlayerList.getEntry(player).getIps();
|
||||
List<String> ipsToShow = PlayerList.getEntry(player).getIps();
|
||||
|
||||
if(rank.getOrdinal() < PlayerRank.SENIOR.getOrdinal() || targetRank.getOrdinal() >= rank.getOrdinal()) {
|
||||
ipsToShow = (ArrayList<String>) PlayerList.getEntry(player).getFuzziedIps();
|
||||
ipsToShow = PlayerList.getEntry(player).getFuzziedIps();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue