Fix survival use of /signalstrength, other interesting changes

This commit is contained in:
Dico200
2015-11-03 19:05:15 +01:00
parent 93ca9e0456
commit aa86881f5e
4 changed files with 84 additions and 14 deletions

View File

@@ -109,6 +109,11 @@ def get_entire_container(container):
helpSubcmd = True,
senderLimit = 0)
def on_signalstrength_command(sender, command, label, args):
#Sender has to be in creative and if in Trusted world, they have to be Trusted+. Any ranks above trusted inherit groups.trusted.
if (not is_creative(sender)) or (sender.getWorld().getName() == "Trusted" and not is_rank(sender, "trusted")):
return "&cYou do not have permission to use that command in this world"
if len(args) > 0 and args[0].lower() in ("default", "defaults", "setdefaults"):
strength, item_type, item_data = get_data(sender, args[1:])