Merge pull request #848 from Smart123s/fix/duplicate/forwardccommand

Remove duplicate forwardCrackedCommand()
This commit is contained in:
games647
2022-07-15 08:56:45 +02:00
committed by GitHub

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)) {