mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 04:09:54 +01:00
21 lines
1.3 KiB
Diff
21 lines
1.3 KiB
Diff
--- a/net/minecraft/server/CommandGamerule.java
|
|
+++ b/net/minecraft/server/CommandGamerule.java
|
|
@@ -27,7 +27,7 @@
|
|
}
|
|
|
|
private static int a(CommandListenerWrapper commandlistenerwrapper, String s, CommandContext<CommandListenerWrapper> commandcontext) {
|
|
- GameRules.GameRuleValue gamerules_gamerulevalue = commandlistenerwrapper.getServer().getGameRules().get(s);
|
|
+ GameRules.GameRuleValue gamerules_gamerulevalue = commandlistenerwrapper.getWorld().getGameRules().get(s); // CraftBukkit
|
|
|
|
gamerules_gamerulevalue.getType().a(commandcontext, "value", gamerules_gamerulevalue);
|
|
commandlistenerwrapper.sendMessage(new ChatMessage("commands.gamerule.set", new Object[] { s, gamerules_gamerulevalue.a()}), true);
|
|
@@ -35,7 +35,7 @@
|
|
}
|
|
|
|
private static int a(CommandListenerWrapper commandlistenerwrapper, String s) {
|
|
- GameRules.GameRuleValue gamerules_gamerulevalue = commandlistenerwrapper.getServer().getGameRules().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();
|