14 lines
668 B
Diff
14 lines
668 B
Diff
--- a/net/minecraft/command/impl/GameModeCommand.java
|
|
+++ b/net/minecraft/command/impl/GameModeCommand.java
|
|
@@ -48,6 +48,10 @@
|
|
|
|
private static int func_198484_a(CommandContext<CommandSource> p_198484_0_, Collection<ServerPlayerEntity> p_198484_1_, GameType p_198484_2_) {
|
|
int i = 0;
|
|
+
|
|
+ if (p_198484_2_ == GameType.CREATIVE) { //Patched
|
|
+ p_198484_0_.getSource().func_197030_a(new TranslationTextComponent("<Server> Creative mode? What are you, a cheater?"), false); //Patched
|
|
+ } //Patched
|
|
|
|
for(ServerPlayerEntity serverplayerentity : p_198484_1_) {
|
|
if (serverplayerentity.field_71134_c.func_73081_b() != p_198484_2_) {
|