Introduced Brigadier Command System. More Formatting Coming in next commit.

This commit is contained in:
Driftay
2019-09-14 15:13:01 -04:00
parent b06e6e0f04
commit 3c9b606bb9
207 changed files with 4465 additions and 4017 deletions

View File

@@ -9,23 +9,15 @@ public class CmdLeave extends FCommand {
super();
this.aliases.add("leave");
//this.requiredArgs.add("");
//this.optionalArgs.put("", "");
this.permission = Permission.LEAVE.node;
this.disableOnLock = true;
senderMustBePlayer = true;
senderMustBeMember = true;
senderMustBeModerator = false;
senderMustBeColeader = false;
senderMustBeAdmin = false;
this.requirements = new CommandRequirements.Builder(Permission.LEAVE)
.playerOnly()
.memberOnly()
.build();
}
@Override
public void perform() {
fme.leave(true);
public void perform(CommandContext context) {
context.fPlayer.leave(true);
}
@Override
@@ -33,4 +25,4 @@ public class CmdLeave extends FCommand {
return TL.LEAVE_DESCRIPTION;
}
}
}