Advertisement
Guest User

Untitled

a guest
May 14th, 2020
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. ========/ checker.java /========
  2. public class checker {
  3.     private static double player_position_x;
  4.     private static double player_position_z;
  5.  
  6.     @EventHandler
  7.     public static void coordchecker() {
  8.         for(Player player : Bukkit.getOnlinePlayers()) {
  9.             player_position_x = player.getLocation().getX();
  10.             player_position_x = player.getLocation().getZ();
  11.            
  12.             if (player_position_x >= 1000 || player_position_z >= 1000) {
  13.                 player.sendMessage("X=1000 / Z=1000");
  14.             }
  15.         }
  16.     }
  17. }
  18. =======/ main.java /=======
  19. checker.coordchecker();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement