mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2025-01-24 12:44:56 +08:00
Add worldedit.calc permission node to //calc command.
This commit is contained in:
parent
bed8a80894
commit
23d6fa7579
@ -510,6 +510,7 @@ public void remove(Actor actor, CommandContext args) throws WorldEditException,
|
||||
usage = "<expression>",
|
||||
desc = "Evaluate a mathematical expression"
|
||||
)
|
||||
@CommandPermissions("worldedit.calc")
|
||||
public void calc(Actor actor, @Text String input) throws CommandException {
|
||||
try {
|
||||
Expression expression = Expression.compile(input);
|
||||
|
Loading…
Reference in New Issue
Block a user