From e884d9b47ed51e52bbe476f080601cba12aee103 Mon Sep 17 00:00:00 2001 From: Robinson Gallego Date: Mon, 18 Nov 2019 17:25:14 -0500 Subject: [PATCH] bruh maybe this might lower codebeat's quality --- .idea/modules.xml | 1 - .../totalfreedom/totalfreedommod/blocking/SignBlocker.java | 5 +++++ .../totalfreedommod/blocking/command/CommandBlocker.java | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.idea/modules.xml b/.idea/modules.xml index 9c7ca68c..8915fc5f 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,6 @@ - diff --git a/src/main/java/me/totalfreedom/totalfreedommod/blocking/SignBlocker.java b/src/main/java/me/totalfreedom/totalfreedommod/blocking/SignBlocker.java index 2e855008..6f75f7e0 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/blocking/SignBlocker.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/blocking/SignBlocker.java @@ -59,6 +59,11 @@ public class SignBlocker extends FreedomService player.sendMessage(ChatColor.GRAY + "You are not allowed to place broken strings that Mojang never fixed."); event.setCancelled(true); } + if (line1.contains("translation.test.") || line2.contains("translation.test.") || line3.contains("translation.test.") || line4.contains("translation.test.")) + { + player.sendMessage(ChatColor.BOLD + "No."); + event.setCancelled(true); + } } } diff --git a/src/main/java/me/totalfreedom/totalfreedommod/blocking/command/CommandBlocker.java b/src/main/java/me/totalfreedom/totalfreedommod/blocking/command/CommandBlocker.java index c810f03c..269c8e93 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/blocking/command/CommandBlocker.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/blocking/command/CommandBlocker.java @@ -131,7 +131,7 @@ public class CommandBlocker extends FreedomService event.setCancelled(true); } - if (event.getMessage().contains("translation.test.")) + if (event.getMessage().contains("translation.test.invalid") || event.getMessage().contains("translation.test.invalid2")) { event.setCancelled(true); FUtil.playerMsg(event.getPlayer(), ChatColor.RED + "No crishy crashy faggy");