Remove duplicate forwardCrackedCommand()

The forwardCrackedCommand() method is invoked before, the removed code, that does the exact same thing.
This commit is contained in:
Smart123s
2022-01-29 11:27:40 +01:00
parent 423bfa2275
commit fe1d4944a8

View File

@ -62,11 +62,7 @@ public class CrackedCommand extends ToggleCommand {
return;
}
if (plugin.getBungeeManager().isEnabled()) {
sendBungeeActivateMessage(sender, sender.getName(), false);
plugin.getCore().sendLocaleMessage("wait-on-proxy", sender);
} else {
//todo: load async if
// todo: load async if
StoredProfile profile = plugin.getCore().getStorage().loadProfile(sender.getName());
if (profile.isPremium()) {
plugin.getCore().sendLocaleMessage("remove-premium", sender);
@ -82,7 +78,6 @@ public class CrackedCommand extends ToggleCommand {
plugin.getCore().sendLocaleMessage("not-premium", sender);
}
}
}
private void onCrackedOther(CommandSender sender, Command command, String[] args) {
if (!hasOtherPermission(sender, command)) {