geforkt von Mirrors/Paper
Fix gamerules in secondary worlds
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
fe0d154d53
Commit
45bf489047
20
paper-server/nms-patches/CommandGamerule.patch
Normale Datei
20
paper-server/nms-patches/CommandGamerule.patch
Normale Datei
@ -0,0 +1,20 @@
|
||||
--- a/net/minecraft/server/CommandGamerule.java
|
||||
+++ b/net/minecraft/server/CommandGamerule.java
|
||||
@@ -29,7 +29,7 @@
|
||||
}
|
||||
|
||||
private static int a(CommandListenerWrapper commandlistenerwrapper, String s, CommandContext<CommandListenerWrapper> commandcontext) {
|
||||
- GameRules.GameRuleValue gamerules_gamerulevalue = commandlistenerwrapper.getServer().aQ().get(s);
|
||||
+ GameRules.GameRuleValue gamerules_gamerulevalue = commandlistenerwrapper.getWorld().getGameRules().get(s); // CraftBukkit
|
||||
|
||||
gamerules_gamerulevalue.e().a(commandcontext, "value", gamerules_gamerulevalue);
|
||||
commandlistenerwrapper.sendMessage(new ChatMessage("commands.gamerule.set", new Object[] { s, gamerules_gamerulevalue.a()}), true);
|
||||
@@ -37,7 +37,7 @@
|
||||
}
|
||||
|
||||
private static int a(CommandListenerWrapper commandlistenerwrapper, String s) {
|
||||
- GameRules.GameRuleValue gamerules_gamerulevalue = commandlistenerwrapper.getServer().aQ().get(s);
|
||||
+ GameRules.GameRuleValue gamerules_gamerulevalue = commandlistenerwrapper.getWorld().getGameRules().get(s); // CraftBukkit
|
||||
|
||||
commandlistenerwrapper.sendMessage(new ChatMessage("commands.gamerule.query", new Object[] { s, gamerules_gamerulevalue.a()}), false);
|
||||
return gamerules_gamerulevalue.c();
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren