Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (message.equalsIgnoreCase("Nachricht1")) {
- IChatBaseComponent newComponent = new ChatMessage("Austausch1");
- try {
- CHAT_COMPONENT.set(packet, newComponent);
- } catch (IllegalArgumentException | IllegalAccessException e) {
- e.printStackTrace();
- }
- } else if (message.equalsIgnoreCase("Nachricht2")) {
- IChatBaseComponent newComponent = new ChatMessage("Austausch2");
- try {
- CHAT_COMPONENT.set(packet, newComponent);
- } catch (IllegalArgumentException | IllegalAccessException e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement