mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-27 12:45:59 +01:00
Fixes #224
This commit is contained in:
parent
2e7220e40d
commit
61569d5212
@ -42,7 +42,7 @@ public class Kick extends SubCommand {
|
|||||||
if (plot == null) {
|
if (plot == null) {
|
||||||
return !sendMessage(plr, C.NOT_IN_PLOT);
|
return !sendMessage(plr, C.NOT_IN_PLOT);
|
||||||
}
|
}
|
||||||
if (((plot == null) || !plot.hasOwner() || !plot.isOwner(UUIDHandler.getUUID(plr))) && !Permissions.hasPermission(plr, "plots.admin.command.kick")) {
|
if (plot == null || ((!plot.hasOwner() || !plot.isOwner(plr.getUUID())) && !Permissions.hasPermission(plr, "plots.admin.command.kick"))) {
|
||||||
MainUtil.sendMessage(plr, C.NO_PLOT_PERMS);
|
MainUtil.sendMessage(plr, C.NO_PLOT_PERMS);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -837,8 +837,8 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||||||
final Location q = new Location(t.getWorld(), t.getX(), 64, t.getZ());
|
final Location q = new Location(t.getWorld(), t.getX(), 64, t.getZ());
|
||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
if (isPlotWorld(q)) {
|
if (isPlotWorld(q)) {
|
||||||
if (isInPlot(q)) {
|
|
||||||
final Plot plot = getCurrentPlot(q);
|
final Plot plot = getCurrentPlot(q);
|
||||||
|
if (plot != null) {
|
||||||
final PlotPlayer pp = BukkitUtil.getPlayer(player);
|
final PlotPlayer pp = BukkitUtil.getPlayer(player);
|
||||||
if (plot.isDenied(pp.getUUID())) {
|
if (plot.isDenied(pp.getUUID())) {
|
||||||
if (Permissions.hasPermission(pp, "plots.admin.enter.denied")) {
|
if (Permissions.hasPermission(pp, "plots.admin.enter.denied")) {
|
||||||
@ -854,8 +854,8 @@ public class PlayerEvents extends com.intellectualcrafters.plot.listeners.PlotLi
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (leftPlot(f, t)) {
|
if (leftPlot(f, t)) {
|
||||||
final Plot plot = getCurrentPlot(f);
|
final Plot plot2 = getCurrentPlot(f);
|
||||||
plotExit(player, plot);
|
plotExit(player, plot2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((q.getX() >= 29999999) || (q.getX() <= -29999999) || (q.getZ() >= 29999999) || (q.getZ() <= -29999999)) {
|
if ((q.getX() >= 29999999) || (q.getX() <= -29999999) || (q.getZ() >= 29999999) || (q.getZ() <= -29999999)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user