1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 05:55:27 +01:00

We don't need the x, y, z methods, it can be get from location

This commit is contained in:
montlikadani 2019-08-14 14:09:32 +02:00
parent 1b9217393f
commit 355074dffd
3 changed files with 5 additions and 52 deletions

View File

@ -23,7 +23,6 @@ import com.gamingmesh.jobs.CMILib.VersionChecker.Version;
import com.gamingmesh.jobs.config.CommentedYamlConfiguration;
import com.gamingmesh.jobs.container.Job;
import com.gamingmesh.jobs.container.TopList;
import com.gamingmesh.jobs.stuff.Debug;
public class SignUtil {
@ -99,9 +98,9 @@ public class SignUtil {
jobsSign newTemp = new jobsSign();
if (NameSection.isString("World")) {
newTemp.setWorldName(NameSection.getString("World"));
newTemp.setX((int) NameSection.getDouble("X"));
newTemp.setY((int) NameSection.getDouble("Y"));
newTemp.setZ((int) NameSection.getDouble("Z"));
newTemp.getLocation().setX((int) NameSection.getDouble("X"));
newTemp.getLocation().setY((int) NameSection.getDouble("Y"));
newTemp.getLocation().setZ((int) NameSection.getDouble("Z"));
} else {
newTemp.setLoc(NameSection.getString("Loc"));
}
@ -228,6 +227,8 @@ public class SignUtil {
temp.put(SignJobName, PlayerList);
}
break;
default:
break;
}
if (PlayerList.isEmpty())

View File

@ -44,30 +44,6 @@ public class jobsSign {
return worldName;
}
public void setX(int x) {
this.x = x;
}
public double getX() {
return x;
}
public void setY(int y) {
this.y = y;
}
public double getY() {
return y;
}
public void setZ(int z) {
this.z = z;
}
public double getZ() {
return z;
}
public Location getLocation() {
if (loc != null)
return loc;

View File

@ -24,30 +24,6 @@ public class blockLoc {
worldName = loc.getWorld().getName();
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
public int getZ() {
return z;
}
public void setZ(int z) {
this.z = z;
}
public String getWorldName() {
return worldName;
}