mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2025-01-10 22:06:51 +00:00
Merge pull request #21 from TheDeus-Group/1980s-housewife-patch-1
Change saconfig delete to saconfig remove
This commit is contained in:
commit
39f4d8249e
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@CommandPermissions(level = AdminLevel.OP, source = SourceType.BOTH)
|
@CommandPermissions(level = AdminLevel.OP, source = SourceType.BOTH)
|
||||||
@CommandParameters(description = "Manage superadmins.", usage = "/<command> <list | clean | clearme [ip] | <add | delete | info> <username>>")
|
@CommandParameters(description = "Manage superadmins.", usage = "/<command> <list | clean | clearme [ip] | <add | remove | info> <username>>")
|
||||||
public class Command_saconfig extends FreedomCommand {
|
public class Command_saconfig extends FreedomCommand {
|
||||||
@Override
|
@Override
|
||||||
public boolean run(CommandSender sender, org.bukkit.entity.Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) {
|
public boolean run(CommandSender sender, org.bukkit.entity.Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole) {
|
||||||
|
@ -155,7 +155,7 @@ public class Command_saconfig extends FreedomCommand {
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case DELETE:
|
case REMOVE:
|
||||||
{
|
{
|
||||||
String targetName = args[1];
|
String targetName = args[1];
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ public class Command_saconfig extends FreedomCommand {
|
||||||
CLEARME("clearme", AdminLevel.SUPER, SourceType.ONLY_IN_GAME, 1, 2),
|
CLEARME("clearme", AdminLevel.SUPER, SourceType.ONLY_IN_GAME, 1, 2),
|
||||||
INFO("info", AdminLevel.SUPER, SourceType.BOTH, 2, 2),
|
INFO("info", AdminLevel.SUPER, SourceType.BOTH, 2, 2),
|
||||||
ADD("add", AdminLevel.SUPER, SourceType.ONLY_CONSOLE, 2, 2),
|
ADD("add", AdminLevel.SUPER, SourceType.ONLY_CONSOLE, 2, 2),
|
||||||
DELETE("delete", AdminLevel.SENIOR, SourceType.ONLY_CONSOLE, 2, 2);
|
REMOVE("remove", AdminLevel.SENIOR, SourceType.ONLY_CONSOLE, 2, 2);
|
||||||
private final String modeName;
|
private final String modeName;
|
||||||
private final AdminLevel adminLevel;
|
private final AdminLevel adminLevel;
|
||||||
private final SourceType sourceType;
|
private final SourceType sourceType;
|
||||||
|
|
Loading…
Reference in a new issue