You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

13 lines
667 B

--- 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?"), true); //Patched
+ } //Patched
for(ServerPlayerEntity serverplayerentity : p_198484_1_) {
if (serverplayerentity.field_71134_c.func_73081_b() != p_198484_2_) {