mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Correct perms for nav wand binding.
This commit is contained in:
parent
9cbf8178ea
commit
6be77451b6
@ -82,7 +82,7 @@ public class ToolCommands {
|
|||||||
aliases = "navwand",
|
aliases = "navwand",
|
||||||
desc = "Navigation wand tool"
|
desc = "Navigation wand tool"
|
||||||
)
|
)
|
||||||
@CommandPermissions({"worldedit.command.jumpto.tool", "worldedit.command.thru.tool"})
|
@CommandPermissions({"worldedit.nagivation.jumpto.tool", "worldedit.nagivation.thru.tool"})
|
||||||
public void navwand(Player player, LocalSession session) throws WorldEditException {
|
public void navwand(Player player, LocalSession session) throws WorldEditException {
|
||||||
|
|
||||||
BaseItemStack itemStack = player.getItemInHand(HandSide.MAIN_HAND);
|
BaseItemStack itemStack = player.getItemInHand(HandSide.MAIN_HAND);
|
||||||
|
@ -169,7 +169,7 @@ public class SessionManager {
|
|||||||
if (owner.hasPermission("worldedit.selection.pos")) {
|
if (owner.hasPermission("worldedit.selection.pos")) {
|
||||||
setDefaultWand(session.getWandItem(), config.wandItem, session, new SelectionWand());
|
setDefaultWand(session.getWandItem(), config.wandItem, session, new SelectionWand());
|
||||||
}
|
}
|
||||||
if (owner.hasPermission("worldedit.command.jumpto.tool") || owner.hasPermission("worldedit.command.thru.tool")) {
|
if (owner.hasPermission("worldedit.nagivation.jumpto.tool") || owner.hasPermission("worldedit.nagivation.thru.tool")) {
|
||||||
setDefaultWand(session.getNavWandItem(), config.navigationWand, session, new NavigationWand());
|
setDefaultWand(session.getNavWandItem(), config.navigationWand, session, new NavigationWand());
|
||||||
}
|
}
|
||||||
} catch (InvalidToolBindException e) {
|
} catch (InvalidToolBindException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user