From d8ae364300d894a5f2437da14c881e5b74440496 Mon Sep 17 00:00:00 2001 From: Ryan Date: Sun, 26 May 2013 14:18:16 +0200 Subject: [PATCH] Patched exploit found in commands This will fix the issue with world edit history erasing, please push and compile ASAP as Mark would like this patched :) --- .../TotalFreedomMod/Listener/TFM_PlayerListener.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java index f8edb986..30cbf5a8 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java +++ b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java @@ -497,6 +497,13 @@ public class TFM_PlayerListener implements Listener } } else if (Pattern.compile("^/save-").matcher(command).find()) + { + if (!TFM_SuperadminList.isUserSuperadmin(p)) + { + block_command = true; + } + } + else if (Pattern.compile("^/clearhistory").matcher(command).find()) { if (!TFM_SuperadminList.isUserSuperadmin(p)) {