mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 08:02:41 +08:00
Add permissionTargeted to applicable commands
Change target perm from target.perm to x.perm.others
This commit is contained in:
committed by
Melledy
Unverified
parent
056b5b80c8
commit
80db118f72
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
|
||||
import static emu.grasscutter.utils.Language.translate;
|
||||
|
||||
@Command(label = "teleport", usage = "teleport <x> <y> <z> [scene id]", aliases = {"tp"}, permission = "player.teleport", description = "commands.teleport.description")
|
||||
@Command(label = "teleport", usage = "teleport <x> <y> <z> [scene id]", aliases = {"tp"}, permission = "player.teleport", permissionTargeted = "player.teleport.others", description = "commands.teleport.description")
|
||||
public final class TeleportCommand implements CommandHandler {
|
||||
|
||||
private float parseRelative(String input, Float current) { // TODO: Maybe this will be useful elsewhere later
|
||||
|
||||
Reference in New Issue
Block a user