wrapper_command WIP... to wrapper branch now?

This commit is contained in:
Dico200
2015-11-25 15:55:25 +01:00
parent a85194d7be
commit b3b6d15a32
7 changed files with 301 additions and 103 deletions

View File

@@ -125,8 +125,9 @@ def on_player_chat(event):
data = safe_open_json()
if event.isCancelled():
return
if not data[playerid]:
if not playerid in data:
return
event.setMessage(multiple_replace(data[playerid], event.getMessage()))
if (event.getPlayer().hasPermission("essentials.chat.color")):
@@ -135,4 +136,3 @@ def on_player_chat(event):
event.setCancelled(True)
plugin_header(recipient=event.getPlayer(), name="Chat Alias")
msg(event.getPlayer(), "&7The message generated was too long and was not sent. :/")