Update to Minecraft 1.8
For more information please see http://www.spigotmc.org/ By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
14
paper-server/nms-patches/PlayerSelector.patch
Normal file
14
paper-server/nms-patches/PlayerSelector.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- ../work/decompile-bb26c12b/net/minecraft/server/PlayerSelector.java 2014-11-27 08:59:46.865421124 +1100
|
||||
+++ src/main/java/net/minecraft/server/PlayerSelector.java 2014-11-27 08:42:10.140850934 +1100
|
||||
@@ -52,6 +52,11 @@
|
||||
}
|
||||
|
||||
public static List getPlayers(ICommandListener icommandlistener, String s, Class oclass) {
|
||||
+ // CraftBukkit start - disable playerselections for ICommandListeners other than command blocks
|
||||
+ if (!(icommandlistener instanceof CommandBlockListenerAbstract)) {
|
||||
+ return com.google.common.collect.ImmutableList.of();
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
Matcher matcher = PlayerSelector.a.matcher(s);
|
||||
|
||||
if (matcher.matches() && icommandlistener.a(1, "@")) {
|
||||
Reference in New Issue
Block a user