mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 03:34:57 +00:00
Generics.
This commit is contained in:
parent
9699439e82
commit
be57759e6c
1 changed files with 3 additions and 2 deletions
|
@ -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