Apply permission checks to command block executed vanilla commands

By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
CraftBukkit/Spigot
2014-12-27 14:58:47 +00:00
parent f6050bb136
commit 98b9908861
3 changed files with 13 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
--- ../work/decompile-8eb82bde//net/minecraft/server/TileEntityBeacon.java 2014-12-27 14:48:34.677261097 +0000
+++ src/main/java/net/minecraft/server/TileEntityBeacon.java 2014-12-27 14:48:34.677261097 +0000
--- ../work/decompile-8eb82bde//net/minecraft/server/TileEntityBeacon.java 2014-12-27 14:58:26.269254675 +0000
+++ src/main/java/net/minecraft/server/TileEntityBeacon.java 2014-12-27 14:58:26.269254675 +0000
@@ -5,6 +5,11 @@
import java.util.Iterator;
import java.util.List;
@@ -77,7 +77,7 @@
}
}
@@ -307,4 +336,24 @@
@@ -307,4 +336,23 @@
return super.c(i, j);
}
}
@@ -93,8 +93,7 @@
+ case 5: // MobEffectList.INCREASE_DAMAGE.id
+ case 10: // MobEffectList.REGENERATION.id
+ break;
+ default:
+ System.out.println("Filtered: " + i);
+ default:
+ i = 0;
+ break;
+ }