mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-24 18:07:39 +01:00
Fixed changes made to PlayerCommandPreprocess events having no effect. Fixes BUKKIT-376
This commit is contained in:
parent
d6c6b18ba9
commit
5901a74565
@ -781,7 +781,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
}
|
||||
|
||||
try {
|
||||
if (this.server.dispatchCommand(player, s.substring(1))) {
|
||||
if (this.server.dispatchCommand(player, event.getMessage().substring(1))) {
|
||||
return;
|
||||
}
|
||||
} catch (CommandException ex) {
|
||||
@ -791,7 +791,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
/* CraftBukkit start - No longer neaded as we have already handled it in server.dispatchCommand above.
|
||||
/* // CraftBukkit start - No longer needed as we have already handled it in server.dispatchCommand above.
|
||||
if (s.toLowerCase().startsWith("/me ")) {
|
||||
s = "* " + this.player.name + " " + s.substring(s.indexOf(" ")).trim();
|
||||
logger.info(s);
|
||||
|
Loading…
Reference in New Issue
Block a user