summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDico200 <dico.karssiens@gmail.com>2015-11-22 15:52:41 +0100
committerDico200 <dico.karssiens@gmail.com>2015-11-22 15:52:41 +0100
commit8613c9221e741499356a82faaff79725c4b3d1c6 (patch)
tree0936c1130bdb72f3dc61dcbc9964eed460431882
parent23b3bffcf6faa699c3a850ab183675ee6d673c10 (diff)
Fix for /svs remove <id>, Added some to blocked_cmds, /svs help still WIP
-rw-r--r--serversigns.py4
1 files 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')