From 558a1240a6ea246d169cf4ea0ad9de283616fa82 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Wed, 16 Dec 2015 13:30:34 +0100 Subject: [PATCH] whoops --- .../xephi/authme/listener/AuthMeEntityListener.java | 11 +---------- .../xephi/authme/listener/AuthMePlayerListener16.java | 2 +- .../xephi/authme/listener/AuthMePlayerListener18.java | 2 +- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/main/java/fr/xephi/authme/listener/AuthMeEntityListener.java b/src/main/java/fr/xephi/authme/listener/AuthMeEntityListener.java index 30b4af72a..1d407a3b4 100644 --- a/src/main/java/fr/xephi/authme/listener/AuthMeEntityListener.java +++ b/src/main/java/fr/xephi/authme/listener/AuthMeEntityListener.java @@ -36,6 +36,7 @@ public class AuthMeEntityListener implements Listener { } } + // TODO: npc status can be used to bypass security!!! /** * Method onEntityDamage. * @@ -53,7 +54,6 @@ public class AuthMeEntityListener implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC(player)) { return; } @@ -78,7 +78,6 @@ public class AuthMeEntityListener implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC((Player) entity)) { return; } @@ -104,7 +103,6 @@ public class AuthMeEntityListener implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC(player)) { return; } @@ -128,7 +126,6 @@ public class AuthMeEntityListener implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC((Player) entity)) { return; } @@ -152,7 +149,6 @@ public class AuthMeEntityListener implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC((Player) entity)) { return; } @@ -177,7 +173,6 @@ public class AuthMeEntityListener implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC((Player) entity)) { return; } @@ -201,7 +196,6 @@ public class AuthMeEntityListener implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC((Player) entity)) { return; } @@ -210,7 +204,6 @@ public class AuthMeEntityListener implements Listener { } // TODO: Need to check this, player can't throw snowball but the item is taken. - /** * Method onProjectileLaunch. * @@ -245,7 +238,6 @@ public class AuthMeEntityListener implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC(player)) { return; } @@ -270,7 +262,6 @@ public class AuthMeEntityListener implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC(player)) { return; } diff --git a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener16.java b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener16.java index 0975b18ab..2c3c5d3c3 100644 --- a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener16.java +++ b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener16.java @@ -22,6 +22,7 @@ public class AuthMePlayerListener16 implements Listener { this.plugin = plugin; } + // TODO: npc status can be used to bypass security!!! /** * Method onPlayerEditBook. * @@ -33,7 +34,6 @@ public class AuthMePlayerListener16 implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC(event.getPlayer())) { return; } diff --git a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener18.java b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener18.java index dbcb1c718..f3d010285 100644 --- a/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener18.java +++ b/src/main/java/fr/xephi/authme/listener/AuthMePlayerListener18.java @@ -22,6 +22,7 @@ public class AuthMePlayerListener18 implements Listener { this.plugin = plugin; } + // TODO: npc status can be used to bypass security!!! /** * Method onPlayerInteractAtEntity. * @@ -33,7 +34,6 @@ public class AuthMePlayerListener18 implements Listener { return; } - // TODO: npc status can be used to bypass security!!! if (Utils.isNPC(event.getPlayer())) { return; }