Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Kingdom getOwner(Location loc) {
- int x = loc.getBlockX();
- int z = loc.getBlockZ();
- if(x > Util.width() && z > Util.width())
- return Main.SE;
- else if(x < Util.width() && z > Util.width())
- return Main.SW;
- else if(x > Util.width() && z < Util.width())
- return Main.NE;
- else if(x < Util.width() && z < Util.width())
- return Main.NW;
- else
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement