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,10 +62,6 @@ public class CrackedCommand extends ToggleCommand {
return; 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()); StoredProfile profile = plugin.getCore().getStorage().loadProfile(sender.getName());
if (profile.isPremium()) { if (profile.isPremium()) {
@ -82,7 +78,6 @@ public class CrackedCommand extends ToggleCommand {
plugin.getCore().sendLocaleMessage("not-premium", sender); plugin.getCore().sendLocaleMessage("not-premium", sender);
} }
} }
}
private void onCrackedOther(CommandSender sender, Command command, String[] args) { private void onCrackedOther(CommandSender sender, Command command, String[] args) {
if (!hasOtherPermission(sender, command)) { if (!hasOtherPermission(sender, command)) {