mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-03 08:49:32 +01:00
Remove debug
This commit is contained in:
parent
4f1613dca1
commit
9fd631d397
@ -17,6 +17,7 @@ public abstract class TargetedDisguise extends Disguise {
|
||||
private List<String> disguiseViewers = new ArrayList<String>();
|
||||
|
||||
private TargetType targetType = TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS;
|
||||
|
||||
public boolean canSee(Player player) {
|
||||
return canSee(player.getName());
|
||||
}
|
||||
@ -24,10 +25,8 @@ public abstract class TargetedDisguise extends Disguise {
|
||||
public boolean canSee(String playername) {
|
||||
boolean hasPlayer = disguiseViewers.contains(playername);
|
||||
if (targetType == TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) {
|
||||
System.out.print(playername + " can see 1: " + !hasPlayer);
|
||||
return !hasPlayer;
|
||||
}
|
||||
System.out.print(playername + " can see 2: " + hasPlayer);
|
||||
return hasPlayer;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user