Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Fixed changes made to PlayerCommandPreprocess events having no effect. Fixes BUKKIT-376
Dieser Commit ist enthalten in:
Ursprung
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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren