mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-31 11:17:33 +02:00
Merge pull request #848 from Smart123s/fix/duplicate/forwardccommand
Remove duplicate forwardCrackedCommand()
This commit is contained in:
@ -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)) {
|
||||||
|
Reference in New Issue
Block a user