Added greentext support

This commit is contained in:
M 2015-09-07 15:54:11 -04:00
parent 7a5d4ce0ff
commit a319ede0da

View file

@ -235,4 +235,12 @@ public class PlayerListener implements Listener { // 2015.07.16.
}
}
}
@EventHandler
public void onPlayerMessage(AsyncPlayerChatEvent e)
{
if (e.getMessage().startsWith(">"))
e.setMessage("§2"+e.getMessage());
}
}