Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onEvent(Event event) {
- if(getState()) {
- if(event instanceof EventStringRendered) {
- for(ArrayHelper<String, String> friend : getLoadedFriends()) {
- ((EventStringRendered)event).setString(((EventStringRendered)event).getString().replace(((String)friend.getObject()[0]),
- Colours.DARK_AQUA + ((String)friend.getObject()[1]) + Colours.WHITE));
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment