Well //up is gone again. Great. Undoing..

This commit is contained in:
Dico200
2015-06-06 10:56:31 +02:00
parent 778fd0234e
commit 35b1fe3a0f

View File

@@ -38,12 +38,13 @@ def on_join(event):
player.teleport(player.getWorld().getSpawnLocation())
"""
@hook.event("player.PlayerCommandPreprocessEvent", "low")
def cmd_event(event):
args = event.getMessage().split(" ")
if args[0].lower() in ("/up", "/worldedit:up"):
event.setMessage("//up " + " ".join(args[1:]))
"""
""" Disabled while builder can't access Trusted
@hook.event("player.PlayerGameModeChangeEvent", "low")