From 8613c9221e741499356a82faaff79725c4b3d1c6 Mon Sep 17 00:00:00 2001 From: Dico200 Date: Sun, 22 Nov 2015 15:52:41 +0100 Subject: Fix for /svs remove , Added some to blocked_cmds, /svs help still WIP --- serversigns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serversigns.py b/serversigns.py index af175ba..ecba2e8 100644 --- a/serversigns.py +++ b/serversigns.py @@ -5,7 +5,7 @@ import java.util.UUID as UUID import org.bukkit.Material as Material import org.bukkit.block.BlockFace as BlockFace -blocked_cmds = ("pex", "kick", "ban", "tempban", "pyeval", "sudo") +blocked_cmds = ("pex", "kick", "ban", "tempban", "pyeval", "sudo", "stop", "reload", "op", "deop", "whitelist") def load_signs(): signs_obj = open_json_file("serversigns", []) @@ -170,7 +170,7 @@ def svs_command(sender, command, label, args): except: return signsMsg("The ID of the message has to be a number and can be found by using &o/svs info") Validate.isTrue(id != 0 and id < len(sign), signsMsg("The %s has no message with an ID of %s, use &o/svs info &4for all messages." % (signName, id))) - sign.remove(id) + del sign[id] return signsMsg("Removed message with id %s from the %s" % (id, signName), 'a') -- cgit v1.2.3