Advertisement
Benjamin_Loison

Annihilation.map.getLimits();

Dec 18th, 2016
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.21 KB | None | 0 0
  1. int[][][] l = Annihilation.map.getLimits();
  2. Bukkit.dispatchCommand(p, "/pos1 " + l[0][0][0] + "," + l[0][0][1] + "," + l[0][0][2]);
  3. Bukkit.dispatchCommand(p, "/pos2 " + l[0][1][0] + "," + l[0][1][1] + "," + l[0][1][2]);
  4. Bukkit.dispatchCommand(p, "rg define Limit_Bottom");
  5. Bukkit.dispatchCommand(p, "/pos1 " + l[1][0][0] + "," + l[1][0][1] + "," + l[1][0][2]);
  6. Bukkit.dispatchCommand(p, "/pos2 " + l[1][1][0] + "," + l[1][1][1] + "," + l[1][1][2]);
  7. Bukkit.dispatchCommand(p, "rg define Limit_Top");
  8. Bukkit.dispatchCommand(p, "/pos1 " + l[2][0][0] + "," + l[2][0][1] + "," + l[2][0][2]);
  9. Bukkit.dispatchCommand(p, "/pos2 " + l[2][1][0] + "," + l[2][1][1] + "," + l[2][1][2]);
  10. Bukkit.dispatchCommand(p, "rg define Limit_Left");
  11. Bukkit.dispatchCommand(p, "/pos1 " + l[3][0][0] + "," + l[3][0][1] + "," + l[3][0][2]);
  12. Bukkit.dispatchCommand(p, "/pos2 " + l[3][1][0] + "," + l[3][1][1] + "," + l[3][1][2]);
  13. Bukkit.dispatchCommand(p, "rg define Limit_Right");
  14. Bukkit.dispatchCommand(p, "/pos1 " + l[4][0][0] + "," + l[4][0][1] + "," + l[4][0][2]);
  15. Bukkit.dispatchCommand(p, "/pos2 " + l[4][1][0] + "," + l[4][1][1] + "," + l[4][1][2]);
  16. Bukkit.dispatchCommand(p, "rg define Limit_Back");
  17. Bukkit.dispatchCommand(p, "/pos1 " + l[5][0][0] + "," + l[5][0][1] + "," + l[5][0][2]);
  18. Bukkit.dispatchCommand(p, "/pos2 " + l[5][1][0] + "," + l[5][1][1] + "," + l[5][1][2]);
  19. Bukkit.dispatchCommand(p, "rg define Limit_Front");
  20.  
  21. String[] posBottom = FileAPI.readStarts(f, "Limit_Bottom:").replace("Limit_Bottom:", "").split("\\+"), posBottom0 = posBottom[0].split(","), posBottom1 = posBottom[1].split(","), posTop = FileAPI.readStarts(f, "Limit_Top:").replace("Limit_Top:", "").split("\\+"), posTop0 = posTop[0].split(","), posTop1 = posTop[1].split(","),
  22.                 posLeft = FileAPI.readStarts(f, "Limit_Left:").replace("Limit_Left:", "").split("\\+"), posLeft0 = posLeft[0].split(","), posLeft1 = posLeft[1].split(","), posRight = FileAPI.readStarts(f, "Limit_Right:").replace("Limit_Right:", "").split("\\+"), posRight0 = posRight[0].split(","), posRight1 = posRight[1].split(","),
  23.                 posBack = FileAPI.readStarts(f, "Limit_Back:").replace("Limit_Back:", "").split("\\+"), posBack0 = posBack[0].split(","), posBack1 = posBack[1].split(","), posFront = FileAPI.readStarts(f, "Limit_Front:").replace("Limit_Front:", "").split("\\+"), posFront0 = posFront[0].split(","), posFront1 = posFront[1].split(",");
  24.         int[][][] limits = new int[6][2][3];
  25.         for(int i = 0; i < 3; i++)
  26.         {
  27.             limits[0][0][i] = Integer.parseInt(posBottom0[i]);
  28.             limits[0][1][i] = Integer.parseInt(posBottom1[i]);
  29.             limits[0][0][i] = Integer.parseInt(posTop0[i]);
  30.             limits[0][1][i] = Integer.parseInt(posTop1[i]);
  31.             limits[0][0][i] = Integer.parseInt(posLeft0[i]);
  32.             limits[0][1][i] = Integer.parseInt(posLeft1[i]);
  33.             limits[0][0][i] = Integer.parseInt(posRight0[i]);
  34.             limits[0][1][i] = Integer.parseInt(posRight1[i]);
  35.             limits[0][0][i] = Integer.parseInt(posBack0[i]);
  36.             limits[0][1][i] = Integer.parseInt(posBack1[i]);
  37.             limits[0][0][i] = Integer.parseInt(posFront0[i]);
  38.             limits[0][1][i] = Integer.parseInt(posFront1[i]);
  39.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement