This commit is contained in:
Gabriele C 2015-12-16 13:30:34 +01:00
parent 94356bb23f
commit 558a1240a6
3 changed files with 3 additions and 12 deletions

View File

@ -36,6 +36,7 @@ public class AuthMeEntityListener implements Listener {
} }
} }
// TODO: npc status can be used to bypass security!!!
/** /**
* Method onEntityDamage. * Method onEntityDamage.
* *
@ -53,7 +54,6 @@ public class AuthMeEntityListener implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC(player)) { if (Utils.isNPC(player)) {
return; return;
} }
@ -78,7 +78,6 @@ public class AuthMeEntityListener implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC((Player) entity)) { if (Utils.isNPC((Player) entity)) {
return; return;
} }
@ -104,7 +103,6 @@ public class AuthMeEntityListener implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC(player)) { if (Utils.isNPC(player)) {
return; return;
} }
@ -128,7 +126,6 @@ public class AuthMeEntityListener implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC((Player) entity)) { if (Utils.isNPC((Player) entity)) {
return; return;
} }
@ -152,7 +149,6 @@ public class AuthMeEntityListener implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC((Player) entity)) { if (Utils.isNPC((Player) entity)) {
return; return;
} }
@ -177,7 +173,6 @@ public class AuthMeEntityListener implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC((Player) entity)) { if (Utils.isNPC((Player) entity)) {
return; return;
} }
@ -201,7 +196,6 @@ public class AuthMeEntityListener implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC((Player) entity)) { if (Utils.isNPC((Player) entity)) {
return; 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. // TODO: Need to check this, player can't throw snowball but the item is taken.
/** /**
* Method onProjectileLaunch. * Method onProjectileLaunch.
* *
@ -245,7 +238,6 @@ public class AuthMeEntityListener implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC(player)) { if (Utils.isNPC(player)) {
return; return;
} }
@ -270,7 +262,6 @@ public class AuthMeEntityListener implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC(player)) { if (Utils.isNPC(player)) {
return; return;
} }

View File

@ -22,6 +22,7 @@ public class AuthMePlayerListener16 implements Listener {
this.plugin = plugin; this.plugin = plugin;
} }
// TODO: npc status can be used to bypass security!!!
/** /**
* Method onPlayerEditBook. * Method onPlayerEditBook.
* *
@ -33,7 +34,6 @@ public class AuthMePlayerListener16 implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC(event.getPlayer())) { if (Utils.isNPC(event.getPlayer())) {
return; return;
} }

View File

@ -22,6 +22,7 @@ public class AuthMePlayerListener18 implements Listener {
this.plugin = plugin; this.plugin = plugin;
} }
// TODO: npc status can be used to bypass security!!!
/** /**
* Method onPlayerInteractAtEntity. * Method onPlayerInteractAtEntity.
* *
@ -33,7 +34,6 @@ public class AuthMePlayerListener18 implements Listener {
return; return;
} }
// TODO: npc status can be used to bypass security!!!
if (Utils.isNPC(event.getPlayer())) { if (Utils.isNPC(event.getPlayer())) {
return; return;
} }