Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +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 {
|
try {
|
||||||
if (this.server.dispatchCommand(player, s.substring(1))) {
|
if (this.server.dispatchCommand(player, event.getMessage().substring(1))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (CommandException ex) {
|
} catch (CommandException ex) {
|
||||||
@ -791,7 +791,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||||||
}
|
}
|
||||||
// CraftBukkit end
|
// 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 ")) {
|
if (s.toLowerCase().startsWith("/me ")) {
|
||||||
s = "* " + this.player.name + " " + s.substring(s.indexOf(" ")).trim();
|
s = "* " + this.player.name + " " + s.substring(s.indexOf(" ")).trim();
|
||||||
logger.info(s);
|
logger.info(s);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren