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:
BONNe 2019-01-06 23:32:15 +02:00 committed by GitHub
parent 2b0ccb4099
commit dbbfdaea7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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");