mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-22 22:14:57 +00:00
Generics.
This commit is contained in:
parent
0b293b7a0d
commit
454a342a9a
1 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@CommandPermissions(level = AdminLevel.SUPER, source = SourceType.BOTH)
|
@CommandPermissions(level = AdminLevel.SUPER, source = SourceType.BOTH)
|
||||||
public class Command_findip extends FreedomCommand {
|
public class Command_findip extends FreedomCommand {
|
||||||
|
@ -28,10 +29,10 @@ public class Command_findip extends FreedomCommand {
|
||||||
PlayerRank rank = PlayerRank.fromSender(sender);
|
PlayerRank rank = PlayerRank.fromSender(sender);
|
||||||
PlayerRank targetRank = PlayerRank.fromSender(player);
|
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()) {
|
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