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.
2019-05-27 13:16:46 -04:00
|
|
|
--- a/net/minecraft/command/impl/GameModeCommand.java
|
|
|
|
+++ b/net/minecraft/command/impl/GameModeCommand.java
|
2019-06-25 12:15:10 -04:00
|
|
|
@@ -50,6 +50,10 @@
|
2019-05-27 02:14:20 -04:00
|
|
|
private static int func_198484_a(CommandContext<CommandSource> p_198484_0_, Collection<ServerPlayerEntity> p_198484_1_, GameType p_198484_2_) {
|
|
|
|
int i = 0;
|
2019-05-29 22:02:02 -04:00
|
|
|
|
2019-05-27 02:14:20 -04:00
|
|
|
+ if (p_198484_2_ == GameType.CREATIVE) { //Patched
|
2019-05-28 11:30:02 -04:00
|
|
|
+ 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
|
2019-05-29 22:02:02 -04:00
|
|
|
+
|
2019-05-27 02:14:20 -04:00
|
|
|
for(ServerPlayerEntity serverplayerentity : p_198484_1_) {
|
|
|
|
if (serverplayerentity.field_71134_c.func_73081_b() != p_198484_2_) {
|
2019-05-29 22:02:02 -04:00
|
|
|
serverplayerentity.func_71033_a(p_198484_2_);
|