From d85b96f8752c43372f21a3c4ea2067326562977b Mon Sep 17 00:00:00 2001 From: Dico200 Date: Fri, 10 Apr 2015 00:13:06 +0200 Subject: Clean up misc.py, add space support for cg key --- misc.py | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'misc.py') diff --git a/misc.py b/misc.py index ea20030..802508c 100644 --- a/misc.py +++ b/misc.py @@ -9,24 +9,6 @@ import org.bukkit.event.player.PlayerChatEvent as PlayerChatEvent import basecommands from basecommands import simplecommand -""" -@advancedcommand("hi", aliases = ["hu"], description = "Says hi!", subCommands = [ - subcommand("server", aliases = ["serv"], amin = 1, amax = 4, usage = "[msg..]", senderLimit = 0), - subcommand("me", aliases = ["meu"], amin = 2, amax = 5, usage = "[MESSAGE]") - ]) -def on_hi_command(): - - def server(sender, command, label, args): - server.dispatchCommand(server.getConsoleSender(), "say " + " ".join(args[1:])) - return "Success!" - def me(sender, command, label, args): - target = server.getPlayer(args[1]) - if target: - target.chat(" ".join(args[2:])) - return None - return "No target found" -""" - @hook.event("player.PlayerJoinEvent", "monitor") def on_join(event): @@ -87,19 +69,6 @@ def on_me_command(sender, command, label, args): broadcast("utils.me", "&7- %s &7%s %s" % (sender.getDisplayName() if isinstance(sender, Player) else "&9CONSOLE", u"\u21E6", " ".join(args))) return None -""" -@basecommands.command("damnyou", aliases = ["dam"]) -def damnyou_command(): - - @basecommands.subcommand("me") - def me(sender, command, label, args): - info("me ran") - - @basecommands.maincommand - def main(sender, command, label, args): - info("main ran") -""" - #@hook.command("gm") #def on_gm_command(sender, args): # """ -- cgit v1.2.3