Added greentext support
This commit is contained in:
parent
7a5d4ce0ff
commit
a319ede0da
1 changed files with 8 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue