Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[][][] l = Annihilation.map.getLimits();
- Bukkit.dispatchCommand(p, "/pos1 " + l[0][0][0] + "," + l[0][0][1] + "," + l[0][0][2]);
- Bukkit.dispatchCommand(p, "/pos2 " + l[0][1][0] + "," + l[0][1][1] + "," + l[0][1][2]);
- Bukkit.dispatchCommand(p, "rg define Limit_Bottom");
- Bukkit.dispatchCommand(p, "/pos1 " + l[1][0][0] + "," + l[1][0][1] + "," + l[1][0][2]);
- Bukkit.dispatchCommand(p, "/pos2 " + l[1][1][0] + "," + l[1][1][1] + "," + l[1][1][2]);
- Bukkit.dispatchCommand(p, "rg define Limit_Top");
- Bukkit.dispatchCommand(p, "/pos1 " + l[2][0][0] + "," + l[2][0][1] + "," + l[2][0][2]);
- Bukkit.dispatchCommand(p, "/pos2 " + l[2][1][0] + "," + l[2][1][1] + "," + l[2][1][2]);
- Bukkit.dispatchCommand(p, "rg define Limit_Left");
- Bukkit.dispatchCommand(p, "/pos1 " + l[3][0][0] + "," + l[3][0][1] + "," + l[3][0][2]);
- Bukkit.dispatchCommand(p, "/pos2 " + l[3][1][0] + "," + l[3][1][1] + "," + l[3][1][2]);
- Bukkit.dispatchCommand(p, "rg define Limit_Right");
- Bukkit.dispatchCommand(p, "/pos1 " + l[4][0][0] + "," + l[4][0][1] + "," + l[4][0][2]);
- Bukkit.dispatchCommand(p, "/pos2 " + l[4][1][0] + "," + l[4][1][1] + "," + l[4][1][2]);
- Bukkit.dispatchCommand(p, "rg define Limit_Back");
- Bukkit.dispatchCommand(p, "/pos1 " + l[5][0][0] + "," + l[5][0][1] + "," + l[5][0][2]);
- Bukkit.dispatchCommand(p, "/pos2 " + l[5][1][0] + "," + l[5][1][1] + "," + l[5][1][2]);
- Bukkit.dispatchCommand(p, "rg define Limit_Front");
- 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(","),
- 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(","),
- 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(",");
- int[][][] limits = new int[6][2][3];
- for(int i = 0; i < 3; i++)
- {
- limits[0][0][i] = Integer.parseInt(posBottom0[i]);
- limits[0][1][i] = Integer.parseInt(posBottom1[i]);
- limits[0][0][i] = Integer.parseInt(posTop0[i]);
- limits[0][1][i] = Integer.parseInt(posTop1[i]);
- limits[0][0][i] = Integer.parseInt(posLeft0[i]);
- limits[0][1][i] = Integer.parseInt(posLeft1[i]);
- limits[0][0][i] = Integer.parseInt(posRight0[i]);
- limits[0][1][i] = Integer.parseInt(posRight1[i]);
- limits[0][0][i] = Integer.parseInt(posBack0[i]);
- limits[0][1][i] = Integer.parseInt(posBack1[i]);
- limits[0][0][i] = Integer.parseInt(posFront0[i]);
- limits[0][1][i] = Integer.parseInt(posFront1[i]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement