mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-28 20:17:40 +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
|
||||
public void setup() {
|
||||
// Permission
|
||||
setPermission(getPermissionPrefix() + "admin.tp");
|
||||
setPermission("admin.tp");
|
||||
setOnlyPlayer(true);
|
||||
setParametersHelp("commands.admin.tp.parameters");
|
||||
setDescription("commands.admin.tp.description");
|
||||
|
Loading…
Reference in New Issue
Block a user