Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. if (message.equalsIgnoreCase("Nachricht1")) {
  2. IChatBaseComponent newComponent = new ChatMessage("Austausch1");
  3. try {
  4. CHAT_COMPONENT.set(packet, newComponent);
  5. } catch (IllegalArgumentException | IllegalAccessException e) {
  6. e.printStackTrace();
  7. }
  8. } else if (message.equalsIgnoreCase("Nachricht2")) {
  9. IChatBaseComponent newComponent = new ChatMessage("Austausch2");
  10. try {
  11. CHAT_COMPONENT.set(packet, newComponent);
  12. } catch (IllegalArgumentException | IllegalAccessException e) {
  13. e.printStackTrace();
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement