flewkey
/
mc.2a03.party
Archived
1
0
Fork 0
This repository has been archived on 2020-06-15. You can view files and clone it, but cannot push or open issues or pull requests.
mc.2a03.party/patches/net/minecraft/command/impl/GameModeCommand.patch

14 lines
668 B
Diff
Raw Normal View History

2019-05-27 13:16:46 -04:00
--- a/net/minecraft/command/impl/GameModeCommand.java
+++ b/net/minecraft/command/impl/GameModeCommand.java
2019-05-27 02:14:20 -04:00
@@ -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
2019-05-27 02:14:20 -04:00
+ } //Patched
for(ServerPlayerEntity serverplayerentity : p_198484_1_) {
if (serverplayerentity.field_71134_c.func_73081_b() != p_198484_2_) {