mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-07 13:03:06 +00:00
Various changes
Permissions: - Changed permissions class to an enum - started using some permissions for EventUtil Events: - fixed armor stands being placed outside allowed area - fixed item frames and paintings being placeable outside allowed area - fixed eating and reading being restricted where it shouldn't - Added various new flags for fine tuned protection - Recoded the result of multiple flags to be more logical - recoded player interact event - fixed ender dragon egg teleportation onto other plots - tried centralizing some logic to the EventUtil class PlotAPI: - minor tweaks to the PlotAPI class PlotSquared updater: - removed some debug - testing a bit more Chunk sending: - fixed plot clearing, and related block changes not sending chunk updates to 1.7.10 clients TODO: - verify all works - finish centralizing event system
This commit is contained in:
parent
8ee90263bb
commit
3a1577469b
54 changed files with 853 additions and 353 deletions
|
@ -32,7 +32,7 @@ import com.intellectualcrafters.plot.object.PlotId;
|
|||
import com.intellectualcrafters.plot.object.PlotPlayer;
|
||||
import com.intellectualcrafters.plot.util.BlockManager;
|
||||
import com.intellectualcrafters.plot.util.MainUtil;
|
||||
import com.intellectualcrafters.plot.util.Permissions;
|
||||
import com.intellectualcrafters.plot.util.Perm;
|
||||
import com.intellectualcrafters.plot.util.SchematicHandler;
|
||||
import com.intellectualcrafters.plot.util.SchematicHandler.DataCollection;
|
||||
import com.intellectualcrafters.plot.util.SchematicHandler.Dimension;
|
||||
|
@ -65,7 +65,7 @@ public class SchematicCmd extends SubCommand {
|
|||
PS.log(C.IS_CONSOLE.s());
|
||||
return false;
|
||||
}
|
||||
if (!Permissions.hasPermission(plr, "plots.schematic.paste")) {
|
||||
if (!Perm.hasPermission(plr, "plots.schematic.paste")) {
|
||||
MainUtil.sendMessage(plr, C.NO_PERMISSION, "plots.schematic.paste");
|
||||
return false;
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ public class SchematicCmd extends SubCommand {
|
|||
PS.log(C.IS_CONSOLE.s());
|
||||
return false;
|
||||
}
|
||||
if (!Permissions.hasPermission(plr, "plots.schematic.test")) {
|
||||
if (!Perm.hasPermission(plr, "plots.schematic.test")) {
|
||||
MainUtil.sendMessage(plr, C.NO_PERMISSION, "plots.schematic.test");
|
||||
return false;
|
||||
}
|
||||
|
@ -226,7 +226,7 @@ public class SchematicCmd extends SubCommand {
|
|||
}
|
||||
case "export":
|
||||
case "save": {
|
||||
if (!Permissions.hasPermission(plr, "plots.schematic.save")) {
|
||||
if (!Perm.hasPermission(plr, "plots.schematic.save")) {
|
||||
MainUtil.sendMessage(plr, C.NO_PERMISSION, "plots.schematic.save");
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue