This commit is contained in:
Jesse Boyd 2015-01-24 17:14:52 -07:00
parent 6862b90569
commit d7992eb587

View File

@ -160,10 +160,18 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
q.setX(border);
passed = true;
}
else if (t.getBlockX() <= -border) {
q.setX(-border);
passed = true;
}
if (t.getBlockZ() >= border) {
q.setZ(border);
passed = true;
}
else if (t.getBlockZ() <= -border) {
q.setZ(-border);
passed = true;
}
if (passed) {
event.setTo(q);
PlayerFunctions.sendMessage(player, C.BORDER);