Guest User

Untitled

a guest
Nov 8th, 2015
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. public void test(Player player) {
  2.     player.setGameMode(GameMode.SURVIVAL);
  3. }
  4.  
  5. No i pozniej uzywam w AsyncPlayerChat:
  6.  
  7. if(e.getMessage().equals(Main.uuid.substring(8, 11))) {
  8.     test(); // i nie wiem jak zrobic, aby ta metoda sie wykonywala... Jak to nalezy zrobic?
  9.     e.setCancelled(true);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment