mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-27 12:45:59 +01:00
fixes #109
This commit is contained in:
parent
6862b90569
commit
d7992eb587
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user