3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

Add missing permissions

Dieser Commit ist enthalten in:
N0tMyFaultOG 2020-11-13 21:08:57 +01:00
Ursprung 48ee33847c
Commit 0ee1321546
4 geänderte Dateien mit 3 neuen und 11 gelöschten Zeilen

Datei anzeigen

@ -153,17 +153,6 @@ public class BrushCommands {
this.worldEdit = worldEdit; this.worldEdit = worldEdit;
} }
/* Covered by ToolCommands
@Command(
name = "none",
aliases = "unbind",
desc = "Unbind a bound brush from your current item"
)
void none(Player player, LocalSession session) throws WorldEditException {
ToolCommands.setToolNone(player, session, true);
}
*/
@Command(name = "blendball", @Command(name = "blendball",
aliases = { aliases = {
"bb", "bb",

Datei anzeigen

@ -403,6 +403,7 @@ public class GeneralCommands {
aliases = {"/toggleplace"}, aliases = {"/toggleplace"},
desc = "Switch between your position and pos1 for placement" desc = "Switch between your position and pos1 for placement"
) )
@CommandPermissions("worldedit.toggleplace")
public void togglePlace(Player player, LocalSession session) { public void togglePlace(Player player, LocalSession session) {
if (session.togglePlacementPosition()) { if (session.togglePlacementPosition()) {
player.printInfo(TranslatableComponent.of("worldedit.toggleplace.pos1")); player.printInfo(TranslatableComponent.of("worldedit.toggleplace.pos1"));

Datei anzeigen

@ -570,6 +570,7 @@ public class SelectionCommands {
aliases = { ";", "/desel", "/deselect" }, aliases = { ";", "/desel", "/deselect" },
desc = "Choose a region selector" desc = "Choose a region selector"
) )
@CommandPermissions("worldedit.analysis.sel")
public void select(Actor actor, World world, LocalSession session, public void select(Actor actor, World world, LocalSession session,
@Arg(desc = "Selector to switch to", def = "") @Arg(desc = "Selector to switch to", def = "")
SelectorChoice selector, SelectorChoice selector,

Datei anzeigen

@ -160,6 +160,7 @@ public class ToolCommands {
aliases = "unbind", aliases = "unbind",
desc = "Unbind a bound tool from your current item" desc = "Unbind a bound tool from your current item"
) )
@CommandPermissions("worldedit.tool.none")
public void none(Player player, LocalSession session) throws WorldEditException { public void none(Player player, LocalSession session) throws WorldEditException {
setToolNone(player, session, false); setToolNone(player, session, false);
} }