mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 19:55:17 +01:00
Unnecessary getPermissionPrefix()
Kryniowesegryderiusz <3 in Support noticed that Admin tp command has double bskyblock.bskyblock, and I found reason in code. This getPermissionPrefix() is not necessary, as setPermission() will also add prefix.
This commit is contained in:
parent
2b0ccb4099
commit
dbbfdaea7f
@ -22,7 +22,7 @@ public class AdminTeleportCommand extends CompositeCommand {
|
|||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
// Permission
|
// Permission
|
||||||
setPermission(getPermissionPrefix() + "admin.tp");
|
setPermission("admin.tp");
|
||||||
setOnlyPlayer(true);
|
setOnlyPlayer(true);
|
||||||
setParametersHelp("commands.admin.tp.parameters");
|
setParametersHelp("commands.admin.tp.parameters");
|
||||||
setDescription("commands.admin.tp.description");
|
setDescription("commands.admin.tp.description");
|
||||||
|
Loading…
Reference in New Issue
Block a user