Change any command (: also refixed tntfill

This commit is contained in:
DroppingAnvil 2020-01-01 19:59:31 -06:00 committed by droppinganvil
parent 4c90bae87c
commit 05e1a7297c
135 changed files with 342 additions and 234 deletions

View File

@ -4,10 +4,7 @@ import ch.njol.skript.Skript;
import ch.njol.skript.SkriptAddon; import ch.njol.skript.SkriptAddon;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken; import com.google.gson.reflect.TypeToken;
import com.massivecraft.factions.cmd.CmdAutoHelp; import com.massivecraft.factions.cmd.*;
import com.massivecraft.factions.cmd.CommandContext;
import com.massivecraft.factions.cmd.FCmdRoot;
import com.massivecraft.factions.cmd.FCommand;
import com.massivecraft.factions.cmd.audit.FChestListener; import com.massivecraft.factions.cmd.audit.FChestListener;
import com.massivecraft.factions.cmd.audit.FLogManager; import com.massivecraft.factions.cmd.audit.FLogManager;
import com.massivecraft.factions.cmd.audit.FLogType; import com.massivecraft.factions.cmd.audit.FLogType;
@ -234,7 +231,8 @@ public class FactionsPlugin extends MPlugin {
Board.getInstance().load(); Board.getInstance().load();
Board.getInstance().clean(); Board.getInstance().clean();
//Load command aliases
Aliases.load();
// Add Base Commands // Add Base Commands
this.cmdBase = new FCmdRoot(); this.cmdBase = new FCmdRoot();
this.cmdAutoHelp = new CmdAutoHelp(); this.cmdAutoHelp = new CmdAutoHelp();

View File

@ -0,0 +1,150 @@
package com.massivecraft.factions.cmd;
import com.massivecraft.factions.Conf;
import com.massivecraft.factions.FactionsPlugin;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
public class Aliases {
/**
* @author DroppingAnvil
*/
public static ArrayList<String> alts_alts = new ArrayList<>(Arrays.asList("alts", "alt"));
public static ArrayList<String> alts_list = new ArrayList<>(Arrays.asList("list", "l"));
public static ArrayList<String> alts_invite = new ArrayList<>(Collections.singletonList("invite"));
public static ArrayList<String> alts_kick = new ArrayList<>(Collections.singletonList("kick"));
public static ArrayList<String> audit = new ArrayList<>(Arrays.asList("audit", "log", "logs"));
public static ArrayList<String> check = new ArrayList<>(Arrays.asList("check"));
public static ArrayList<String> weewoo = new ArrayList<>(Collections.singletonList("weewoo"));
public static ArrayList<String> chest = new ArrayList<>(Arrays.asList("chest", "pv"));
public static ArrayList<String> claim_auto = new ArrayList<>(Collections.singletonList("autoclaim"));
public static ArrayList<String> claim_claim = new ArrayList<>(Collections.singletonList("claim"));
public static ArrayList<String> claim_at = new ArrayList<>(Collections.singletonList("claimat"));
public static ArrayList<String> claim_line = new ArrayList<>(Arrays.asList("claimline", "cl"));
public static ArrayList<String> claim_corner = new ArrayList<>(Arrays.asList("corner"));
public static ArrayList<String> unclaim_all_safe = new ArrayList<>(Arrays.asList("safeunclaimall", "safedeclaimall"));
public static ArrayList<String> unclaim_unclaim = new ArrayList<>(Arrays.asList("unclaim", "declaim"));
public static ArrayList<String> unclaim_all_unsafe = new ArrayList<>(Arrays.asList("unclaimall", "declaimall"));
public static ArrayList<String> unclaim_all_war = new ArrayList<>(Arrays.asList("warunclaimall", "wardeclaimall"));
public static ArrayList<String> money_money = new ArrayList<>(Arrays.asList("money", "bank"));
public static ArrayList<String> money_balance = new ArrayList<>(Arrays.asList("b", "balance"));
public static ArrayList<String> money_deposit = new ArrayList<>(Arrays.asList("d", "deposit"));
public static ArrayList<String> money_transfer_Ff = new ArrayList<>(Collections.singletonList("ff"));
public static ArrayList<String> money_transfer_Fp = new ArrayList<>(Collections.singletonList("fp"));
public static ArrayList<String> money_transfer_Pf = new ArrayList<>(Collections.singletonList("pf"));
public static ArrayList<String> money_withdraw = new ArrayList<>(Arrays.asList("w", "withdraw"));
public static ArrayList<String> grace = new ArrayList<>(Collections.singletonList("grace"));
public static ArrayList<String> logout = new ArrayList<>(Collections.singletonList("logout"));
public static ArrayList<String> points_points = new ArrayList<>(Collections.singletonList("points"));
public static ArrayList<String> points_add = new ArrayList<>(Collections.singletonList("add"));
public static ArrayList<String> points_remove = new ArrayList<>(Collections.singletonList("remove"));
public static ArrayList<String> points_set = new ArrayList<>(Collections.singletonList("set"));
public static ArrayList<String> relation_ally = new ArrayList<>(Collections.singletonList("ally"));
public static ArrayList<String> relation_enemy = new ArrayList<>(Collections.singletonList("enemy"));
public static ArrayList<String> relation_neutral = new ArrayList<>(Collections.singletonList("neutral"));
public static ArrayList<String> relation_truce = new ArrayList<>(Collections.singletonList("truce"));
public static ArrayList<String> reserve = new ArrayList<>(Collections.singletonList("reserve"));
public static ArrayList<String> roles_demote = new ArrayList<>(Collections.singletonList("demote"));
public static ArrayList<String> roles_promote = new ArrayList<>(Collections.singletonList("ally"));
public static ArrayList<String> tnt_tnt = new ArrayList<>(Collections.singletonList("tnt"));
public static ArrayList<String> tnt_tntfill = new ArrayList<>(Collections.singletonList("tntfill"));
public static ArrayList<String> wild = new ArrayList<>(Collections.singletonList("wild"));
public static ArrayList<String> admin = new ArrayList<>(Arrays.asList("admin", "setadmin", "leader", "setleader"));
public static ArrayList<String> ahome = new ArrayList<>(Collections.singletonList("ahome"));
public static ArrayList<String> announce = new ArrayList<>(Arrays.asList("ann", "announce"));
public static ArrayList<String> help = new ArrayList<>(Arrays.asList("help", "h", "?"));
public static ArrayList<String> ban_ban = new ArrayList<>(Collections.singletonList("ban"));
public static ArrayList<String> ban_banlist = new ArrayList<>(Arrays.asList("banlist", "bans", "banl"));
public static ArrayList<String> banner = new ArrayList<>(Collections.singletonList("banner"));
public static ArrayList<String> boom = new ArrayList<>(Arrays.asList("noboom", "explosions", "toggleexplosions"));
public static ArrayList<String> bypass = new ArrayList<>(Collections.singletonList("bypass"));
public static ArrayList<String> chat = new ArrayList<>(Arrays.asList("chat", "c"));
public static ArrayList<String> chatspy = new ArrayList<>(Collections.singletonList("chatspy"));
public static ArrayList<String> checkpoint = new ArrayList<>(Arrays.asList("checkp", "checkpoint", "cpoint"));
public static ArrayList<String> coleader = new ArrayList<>(Arrays.asList("coleader", "setcoleader", "co", "setco"));
public static ArrayList<String> config = new ArrayList<>(Collections.singletonList("config"));
public static ArrayList<String> convert = new ArrayList<>(Collections.singletonList("convert"));
public static ArrayList<String> coords = new ArrayList<>(Arrays.asList("coords", "coord"));
public static ArrayList<String> create = new ArrayList<>(Collections.singletonList("create"));
public static ArrayList<String> debug = new ArrayList<>(Collections.singletonList("debug"));
public static ArrayList<String> deinvite = new ArrayList<>(Arrays.asList("deinvite", "deinv"));
public static ArrayList<String> deletefwarp = new ArrayList<>(Arrays.asList("delwarp", "dw", "deletewarp"));
public static ArrayList<String> description = new ArrayList<>(Arrays.asList("desc", "description"));
public static ArrayList<String> disband = new ArrayList<>(Collections.singletonList("disband"));
public static ArrayList<String> discord_discord = new ArrayList<>(Collections.singletonList("discord"));
public static ArrayList<String> drain = new ArrayList<>(Collections.singletonList("drain"));
public static ArrayList<String> global = new ArrayList<>(Arrays.asList("gchat", "global", "globalchat"));
public static ArrayList<String> fly = new ArrayList<>(Collections.singletonList("fly"));
public static ArrayList<String> focus = new ArrayList<>(Collections.singletonList("focus"));
public static ArrayList<String> warp = new ArrayList<>(Arrays.asList("warp", "warps"));
public static ArrayList<String> getvault = new ArrayList<>(Collections.singletonList("getvault"));
public static ArrayList<String> home = new ArrayList<>(Collections.singletonList("home"));
public static ArrayList<String> inspect = new ArrayList<>(Arrays.asList("inspect", "ins"));
public static ArrayList<String> invsee = new ArrayList<>(Arrays.asList("invsee", "inventorysee"));
public static ArrayList<String> invite = new ArrayList<>(Arrays.asList("invite", "inv"));
public static ArrayList<String> join = new ArrayList<>(Collections.singletonList("join"));
public static ArrayList<String> kick = new ArrayList<>(Collections.singletonList("kick"));
public static ArrayList<String> killholograms = new ArrayList<>(Collections.singletonList("killholos"));
public static ArrayList<String> leave = new ArrayList<>(Collections.singletonList("leave"));
public static ArrayList<String> list = new ArrayList<>(Arrays.asList("list", "ls"));
public static ArrayList<String> lock = new ArrayList<>(Collections.singletonList("lock"));
public static ArrayList<String> logins = new ArrayList<>(Arrays.asList("logins", "login", "logouts"));
public static ArrayList<String> lookup = new ArrayList<>(Collections.singletonList("lookup"));
public static ArrayList<String> lowPower = new ArrayList<>(Collections.singletonList("lowpower"));
public static ArrayList<String> map_map = new ArrayList<>(Collections.singletonList("map"));
public static ArrayList<String> map_height = new ArrayList<>(Arrays.asList("mapheight", "mh"));
public static ArrayList<String> mod = new ArrayList<>(Arrays.asList("mod", "setmod", "officer", "setofficer"));
public static ArrayList<String> modifyPower = new ArrayList<>(Arrays.asList("mp", "pm", "modpower", "modifypower"));
public static ArrayList<String> near = new ArrayList<>(Arrays.asList("near", "nearby"));
public static ArrayList<String> open = new ArrayList<>(Collections.singletonList("open"));
public static ArrayList<String> owner_owner = new ArrayList<>(Collections.singletonList("owner"));
public static ArrayList<String> owner_list = new ArrayList<>(Collections.singletonList("ownerlist"));
public static ArrayList<String> paypal_see = new ArrayList<>(Arrays.asList("paypal", "seepaypal"));
public static ArrayList<String> paypal_set = new ArrayList<>(Collections.singletonList("setpaypal"));
public static ArrayList<String> peaceful = new ArrayList<>(Collections.singletonList("peaceful"));
public static ArrayList<String> perm = new ArrayList<>(Arrays.asList("perm", "perms", "permission", "permissions"));
public static ArrayList<String> permanent_faction = new ArrayList<>(Collections.singletonList("permanent"));
public static ArrayList<String> permanent_power = new ArrayList<>(Collections.singletonList("permanentpower"));
public static ArrayList<String> titles = new ArrayList<>(Collections.singletonList("titles"));
public static ArrayList<String> power_power = new ArrayList<>(Arrays.asList("pow", "power"));
public static ArrayList<String> power_boost = new ArrayList<>(Collections.singletonList("powerboost"));
public static ArrayList<String> reload = new ArrayList<>(Collections.singletonList("reload"));
public static ArrayList<String> rules = new ArrayList<>(Arrays.asList("r", "rule", "rules"));
public static ArrayList<String> saveAll = new ArrayList<>(Arrays.asList("save", "saveall"));
public static ArrayList<String> scoreboard = new ArrayList<>(Arrays.asList("sb", "scoreboard"));
public static ArrayList<String> seeChunk = new ArrayList<>(Arrays.asList("sc", "seechunk"));
public static ArrayList<String> discord_see = new ArrayList<>(Collections.singletonList("seediscord"));
public static ArrayList<String> discord_set = new ArrayList<>(Collections.singletonList("setdiscord"));
public static ArrayList<String> setBanner = new ArrayList<>(Collections.singletonList("setbanner"));
public static ArrayList<String> setDefaultRole = new ArrayList<>(Arrays.asList("defaultrole", "def", "default", "defaultrank"));
public static ArrayList<String> setWarp = new ArrayList<>(Arrays.asList("sw", "setwarp"));
public static ArrayList<String> setHome = new ArrayList<>(Collections.singletonList("sethome"));
public static ArrayList<String> setMaxVaults = new ArrayList<>(Arrays.asList("smv", "setmaxvaults"));
public static ArrayList<String> show_show = new ArrayList<>(Arrays.asList("show", "who"));
public static ArrayList<String> show_claims = new ArrayList<>(Arrays.asList("showclaim", "showclaims"));
public static ArrayList<String> show_invites = new ArrayList<>(Collections.singletonList("showinvites"));
public static ArrayList<String> spawnerlock = new ArrayList<>(Arrays.asList("lockspawners", "spawnerlock"));
public static ArrayList<String> status = new ArrayList<>(Arrays.asList("s", "status"));
public static ArrayList<String> stealth = new ArrayList<>(Arrays.asList("stealth", "ninja"));
public static ArrayList<String> strikes_strikes = new ArrayList<>(Collections.singletonList("strikes"));
public static ArrayList<String> strikes_give = new ArrayList<>(Collections.singletonList("give"));
public static ArrayList<String> strikes_info = new ArrayList<>(Collections.singletonList("info"));
public static ArrayList<String> strikes_set = new ArrayList<>(Collections.singletonList("set"));
public static ArrayList<String> strikes_take = new ArrayList<>(Collections.singletonList("take"));
public static ArrayList<String> stuck = new ArrayList<>(Arrays.asList("stuck", "halp!"));
public static ArrayList<String> tag = new ArrayList<>(Arrays.asList("tag", "rename"));
public static ArrayList<String> title = new ArrayList<>(Collections.singletonList("title"));
public static ArrayList<String> toggleAllianceChat = new ArrayList<>(Arrays.asList("tac", "ac", "togglealliancechat"));
public static ArrayList<String> top = new ArrayList<>(Arrays.asList("t", "top"));
public static ArrayList<String> tpBanner = new ArrayList<>(Collections.singletonList("tpbanner"));
public static ArrayList<String> unban = new ArrayList<>(Collections.singletonList("unban"));
public static ArrayList<String> upgrades = new ArrayList<>(Arrays.asList("upgrades", "upgrade"));
public static ArrayList<String> vault = new ArrayList<>(Collections.singletonList("vault"));
public static ArrayList<String> viewChest = new ArrayList<>(Arrays.asList("viewchest", "viewpv"));
private static transient Aliases i = new Aliases();
public static void load() {
FactionsPlugin.getInstance().persist.loadOrSaveDefault(i, Aliases.class, "aliases");
}
}

View File

@ -14,7 +14,7 @@ public class CmdAHome extends FCommand {
public CmdAHome() { public CmdAHome() {
super(); super();
this.aliases.add("ahome"); this.aliases.addAll(Aliases.ahome);
this.requiredArgs.add("player"); this.requiredArgs.add("player");

View File

@ -20,10 +20,7 @@ public class CmdAdmin extends FCommand {
public CmdAdmin() { public CmdAdmin() {
super(); super();
this.aliases.add("admin"); this.aliases.addAll(Aliases.admin);
this.aliases.add("setadmin");
this.aliases.add("leader");
this.aliases.add("setleader");
this.requiredArgs.add("player"); this.requiredArgs.add("player");

View File

@ -18,8 +18,7 @@ public class CmdAnnounce extends FCommand {
public CmdAnnounce() { public CmdAnnounce() {
super(); super();
this.aliases.add("ann"); this.aliases.addAll(Aliases.announce);
this.aliases.add("announce");
this.requiredArgs.add("message"); this.requiredArgs.add("message");

View File

@ -13,9 +13,7 @@ public class CmdAutoHelp extends FCommand {
*/ */
public CmdAutoHelp() { public CmdAutoHelp() {
this.aliases.add("?"); this.aliases.addAll(Aliases.help);
this.aliases.add("h");
this.aliases.add("help");
this.setHelpShort(""); this.setHelpShort("");

View File

@ -21,7 +21,7 @@ public class CmdBan extends FCommand {
public CmdBan() { public CmdBan() {
super(); super();
this.aliases.add("ban"); this.aliases.addAll(Aliases.ban_ban);
this.requiredArgs.add("target"); this.requiredArgs.add("target");

View File

@ -19,9 +19,7 @@ public class CmdBanlist extends FCommand {
public CmdBanlist() { public CmdBanlist() {
super(); super();
this.aliases.add("banlist"); this.aliases.addAll(Aliases.ban_banlist);
this.aliases.add("bans");
this.aliases.add("banl");
this.optionalArgs.put("faction", "faction"); this.optionalArgs.put("faction", "faction");

View File

@ -19,8 +19,7 @@ public class CmdBanner extends FCommand {
*/ */
public CmdBanner() { public CmdBanner() {
this.aliases.add("banner"); this.aliases.addAll(Aliases.banner);
this.aliases.add("warbanner");
this.requirements = new CommandRequirements.Builder(Permission.BANNER).playerOnly().memberOnly().build(); this.requirements = new CommandRequirements.Builder(Permission.BANNER).playerOnly().memberOnly().build();
} }

View File

@ -12,9 +12,7 @@ public class CmdBoom extends FCommand {
public CmdBoom() { public CmdBoom() {
super(); super();
this.aliases.add("noboom"); this.aliases.addAll(Aliases.boom);
this.aliases.add("explosions");
this.aliases.add("toggleexplosions");
//this.requiredArgs.add(""); //this.requiredArgs.add("");
this.optionalArgs.put("on/off", "flip"); this.optionalArgs.put("on/off", "flip");

View File

@ -12,7 +12,7 @@ public class CmdBypass extends FCommand {
public CmdBypass() { public CmdBypass() {
super(); super();
this.aliases.add("bypass"); this.aliases.addAll(Aliases.bypass);
//this.requiredArgs.add(""); //this.requiredArgs.add("");
this.optionalArgs.put("on/off", "flip"); this.optionalArgs.put("on/off", "flip");

View File

@ -16,8 +16,7 @@ public class CmdChat extends FCommand {
public CmdChat() { public CmdChat() {
super(); super();
this.aliases.add("c"); this.aliases.addAll(Aliases.chat);
this.aliases.add("chat");
//this.requiredArgs.add(""); //this.requiredArgs.add("");
this.optionalArgs.put("mode", "next"); this.optionalArgs.put("mode", "next");

View File

@ -12,7 +12,7 @@ public class CmdChatSpy extends FCommand {
public CmdChatSpy() { public CmdChatSpy() {
super(); super();
this.aliases.add("chatspy"); this.aliases.addAll(Aliases.chatspy);
this.optionalArgs.put("on/off", "flip"); this.optionalArgs.put("on/off", "flip");

View File

@ -13,9 +13,7 @@ public class CmdCheckpoint extends FCommand {
public CmdCheckpoint() { public CmdCheckpoint() {
super(); super();
this.aliases.add("checkp"); this.aliases.addAll(Aliases.checkpoint);
this.aliases.add("checkpoint");
this.aliases.add("cpoint");
this.optionalArgs.put("set", ""); this.optionalArgs.put("set", "");

View File

@ -19,10 +19,7 @@ public class CmdColeader extends FCommand {
public CmdColeader() { public CmdColeader() {
super(); super();
this.aliases.add("co"); this.aliases.addAll(Aliases.coleader);
this.aliases.add("setcoleader");
this.aliases.add("coleader");
this.aliases.add("setco");
this.optionalArgs.put("player name", "name"); this.optionalArgs.put("player name", "name");

View File

@ -20,7 +20,7 @@ public class CmdConfig extends FCommand {
public CmdConfig() { public CmdConfig() {
super(); super();
this.aliases.add("config"); this.aliases.addAll(Aliases.config);
this.requiredArgs.add("setting"); this.requiredArgs.add("setting");
this.requiredArgs.add("value"); this.requiredArgs.add("value");

View File

@ -14,7 +14,7 @@ public class CmdConvert extends FCommand {
*/ */
public CmdConvert() { public CmdConvert() {
this.aliases.add("convert"); this.aliases.addAll(Aliases.convert);
this.requiredArgs.add("[MYSQL|JSON]"); this.requiredArgs.add("[MYSQL|JSON]");
this.requirements = new CommandRequirements.Builder(Permission.CONVERT) this.requirements = new CommandRequirements.Builder(Permission.CONVERT)

View File

@ -13,8 +13,7 @@ public class CmdCoords extends FCommand {
public CmdCoords() { public CmdCoords() {
super(); super();
this.aliases.add("coords"); this.aliases.addAll(Aliases.coords);
this.aliases.add("coord");
this.requirements = new CommandRequirements.Builder(Permission.COORD) this.requirements = new CommandRequirements.Builder(Permission.COORD)
.playerOnly() .playerOnly()

View File

@ -25,7 +25,7 @@ public class CmdCreate extends FCommand {
public CmdCreate() { public CmdCreate() {
super(); super();
this.aliases.add("create"); this.aliases.addAll(Aliases.create);
this.requiredArgs.add("faction tag"); this.requiredArgs.add("faction tag");

View File

@ -20,8 +20,7 @@ public class CmdDeinvite extends FCommand {
public CmdDeinvite() { public CmdDeinvite() {
super(); super();
this.aliases.add("deinvite"); this.aliases.addAll(Aliases.deinvite);
this.aliases.add("deinv");
this.optionalArgs.put("player name", "name"); this.optionalArgs.put("player name", "name");

View File

@ -13,9 +13,7 @@ public class CmdDelFWarp extends FCommand {
public CmdDelFWarp() { public CmdDelFWarp() {
super(); super();
this.aliases.add("delwarp"); this.aliases.addAll(Aliases.deletefwarp);
this.aliases.add("dw");
this.aliases.add("deletewarp");
this.requiredArgs.add("warp name"); this.requiredArgs.add("warp name");
this.requirements = new CommandRequirements.Builder(Permission.SETWARP) this.requirements = new CommandRequirements.Builder(Permission.SETWARP)

View File

@ -18,8 +18,7 @@ public class CmdDescription extends FCommand {
public CmdDescription() { public CmdDescription() {
super(); super();
this.aliases.add("desc"); this.aliases.addAll(Aliases.description);
this.aliases.add("description");
this.requiredArgs.add("desc"); this.requiredArgs.add("desc");

View File

@ -26,7 +26,7 @@ public class CmdDisband extends FCommand {
public CmdDisband() { public CmdDisband() {
super(); super();
this.aliases.add("disband"); this.aliases.addAll(Aliases.disband);
this.optionalArgs.put("faction tag", "yours"); this.optionalArgs.put("faction tag", "yours");

View File

@ -9,7 +9,7 @@ import java.util.Random;
public class CmdDiscord extends FCommand { public class CmdDiscord extends FCommand {
public CmdDiscord() { public CmdDiscord() {
super(); super();
this.aliases.add("discord"); this.aliases.addAll(Aliases.discord_discord);
this.requirements = new CommandRequirements.Builder(Permission.DISCORD) this.requirements = new CommandRequirements.Builder(Permission.DISCORD)
.playerOnly() .playerOnly()
.build(); .build();

View File

@ -16,7 +16,7 @@ import java.text.DecimalFormat;
*/ */
public class CmdDrain extends FCommand{ public class CmdDrain extends FCommand{
public CmdDrain(){ public CmdDrain(){
this.aliases.add("drain"); this.aliases.addAll(Aliases.drain);
this.requirements = new CommandRequirements.Builder(Permission.DRAIN) this.requirements = new CommandRequirements.Builder(Permission.DRAIN)
.playerOnly() .playerOnly()
.memberOnly() .memberOnly()

View File

@ -17,9 +17,7 @@ public class CmdFGlobal extends FCommand {
public CmdFGlobal() { public CmdFGlobal() {
super(); super();
this.aliases.add("gchat"); this.aliases.addAll(Aliases.global);
this.aliases.add("global");
this.aliases.add("globalchat");
this.requirements = new CommandRequirements.Builder(Permission.GLOBALCHAT) this.requirements = new CommandRequirements.Builder(Permission.GLOBALCHAT)
.playerOnly() .playerOnly()

View File

@ -20,8 +20,7 @@ public class CmdFWarp extends FCommand {
public CmdFWarp() { public CmdFWarp() {
super(); super();
this.aliases.add("warp"); this.aliases.addAll(Aliases.warp);
this.aliases.add("warps");
this.optionalArgs.put("warpname", "warpname"); this.optionalArgs.put("warpname", "warpname");
this.optionalArgs.put("password", "password"); this.optionalArgs.put("password", "password");

View File

@ -31,7 +31,7 @@ public class CmdFly extends FCommand {
public CmdFly() { public CmdFly() {
super(); super();
this.aliases.add("fly"); this.aliases.addAll(Aliases.fly);
this.optionalArgs.put("on/off", "flip"); this.optionalArgs.put("on/off", "flip");
this.requirements = new CommandRequirements.Builder(Permission.FLY) this.requirements = new CommandRequirements.Builder(Permission.FLY)

View File

@ -13,7 +13,7 @@ public class CmdFocus extends FCommand {
*/ */
public CmdFocus() { public CmdFocus() {
aliases.add("focus"); aliases.addAll(Aliases.focus);
requiredArgs.add("player"); requiredArgs.add("player");

View File

@ -16,7 +16,7 @@ public class CmdGetVault extends FCommand {
public CmdGetVault() { public CmdGetVault() {
super(); super();
this.aliases.add("getvault"); this.aliases.addAll(Aliases.getvault);
this.requirements = new CommandRequirements.Builder(Permission.GETVAULT) this.requirements = new CommandRequirements.Builder(Permission.GETVAULT)
.playerOnly() .playerOnly()

View File

@ -21,9 +21,7 @@ public class CmdHelp extends FCommand {
public CmdHelp() { public CmdHelp() {
super(); super();
this.aliases.add("help"); this.aliases.addAll(Aliases.help);
this.aliases.add("h");
this.aliases.add("?");
//this.requiredArgs.add(""); //this.requiredArgs.add("");
this.optionalArgs.put("page", "1"); this.optionalArgs.put("page", "1");

View File

@ -26,7 +26,7 @@ public class CmdHome extends FCommand {
public CmdHome() { public CmdHome() {
super(); super();
this.aliases.add("home"); this.aliases.addAll(Aliases.home);
this.optionalArgs.put("faction", "yours"); this.optionalArgs.put("faction", "yours");
this.requirements = new CommandRequirements.Builder(Permission.HOME) this.requirements = new CommandRequirements.Builder(Permission.HOME)

View File

@ -11,9 +11,7 @@ public class CmdInspect extends FCommand {
public CmdInspect() { public CmdInspect() {
super(); super();
this.aliases.add("inspect"); this.aliases.addAll(Aliases.inspect);
this.aliases.add("ins");
this.requirements = new CommandRequirements.Builder(Permission.INSPECT) this.requirements = new CommandRequirements.Builder(Permission.INSPECT)
.playerOnly() .playerOnly()
.memberOnly() .memberOnly()

View File

@ -23,8 +23,7 @@ public class CmdInventorySee extends FCommand {
public CmdInventorySee() { public CmdInventorySee() {
super(); super();
this.aliases.add("invsee"); this.aliases.addAll(Aliases.invsee);
this.aliases.add("inventorysee");
this.requiredArgs.add("member name"); this.requiredArgs.add("member name");

View File

@ -19,8 +19,7 @@ public class CmdInvite extends FCommand {
public CmdInvite() { public CmdInvite() {
super(); super();
this.aliases.add("invite"); this.aliases.addAll(Aliases.invite);
this.aliases.add("inv");
this.requiredArgs.add("player name"); this.requiredArgs.add("player name");

View File

@ -22,7 +22,7 @@ public class CmdJoin extends FCommand {
public CmdJoin() { public CmdJoin() {
super(); super();
this.aliases.add("join"); this.aliases.addAll(Aliases.join);
this.requiredArgs.add("faction name"); this.requiredArgs.add("faction name");
this.optionalArgs.put("player", "you"); this.optionalArgs.put("player", "you");

View File

@ -24,7 +24,7 @@ public class CmdKick extends FCommand {
public CmdKick() { public CmdKick() {
super(); super();
this.aliases.add("kick"); this.aliases.addAll(Aliases.kick);
this.optionalArgs.put("player name", "player name"); this.optionalArgs.put("player name", "player name");
this.requirements = new CommandRequirements.Builder(Permission.KICK) this.requirements = new CommandRequirements.Builder(Permission.KICK)

View File

@ -11,7 +11,7 @@ public class CmdKillHolograms extends FCommand {
public CmdKillHolograms() { public CmdKillHolograms() {
super(); super();
this.aliases.add("killholos"); this.aliases.addAll(Aliases.killholograms);
this.requiredArgs.add("radius"); this.requiredArgs.add("radius");
this.requirements = new CommandRequirements.Builder(Permission.KILLHOLOS) this.requirements = new CommandRequirements.Builder(Permission.KILLHOLOS)

View File

@ -13,7 +13,7 @@ public class CmdLeave extends FCommand {
public CmdLeave() { public CmdLeave() {
super(); super();
this.aliases.add("leave"); this.aliases.addAll(Aliases.leave);
this.requirements = new CommandRequirements.Builder(Permission.LEAVE) this.requirements = new CommandRequirements.Builder(Permission.LEAVE)
.playerOnly() .playerOnly()

View File

@ -22,8 +22,7 @@ public class CmdList extends FCommand {
public CmdList() { public CmdList() {
super(); super();
this.aliases.add("list"); this.aliases.addAll(Aliases.list);
this.aliases.add("ls");
// default values in case user has old config // default values in case user has old config
defaults[0] = "&e&m----------&r&e[ &2Faction List &9{pagenumber}&e/&9{pagecount} &e]&m----------"; defaults[0] = "&e&m----------&r&e[ &2Faction List &9{pagenumber}&e/&9{pagecount} &e]&m----------";

View File

@ -19,7 +19,7 @@ public class CmdLock extends FCommand {
public CmdLock() { public CmdLock() {
super(); super();
this.aliases.add("lock"); this.aliases.addAll(Aliases.lock);
this.optionalArgs.put("on/off", "flip"); this.optionalArgs.put("on/off", "flip");
this.requirements = new CommandRequirements.Builder(Permission.LOCK) this.requirements = new CommandRequirements.Builder(Permission.LOCK)

View File

@ -11,10 +11,7 @@ public class CmdLogins extends FCommand {
public CmdLogins() { public CmdLogins() {
super(); super();
this.aliases.add("login"); this.aliases.addAll(Aliases.logins);
this.aliases.add("logins");
this.aliases.add("logout");
this.aliases.add("logouts");
this.requirements = new CommandRequirements.Builder(Permission.MONITOR_LOGINS) this.requirements = new CommandRequirements.Builder(Permission.MONITOR_LOGINS)
.playerOnly() .playerOnly()

View File

@ -18,7 +18,7 @@ public class CmdLookup extends FCommand {
public CmdLookup() { public CmdLookup() {
super(); super();
this.aliases.add("lookup"); this.aliases.addAll(Aliases.lookup);
this.requiredArgs.add("faction name"); this.requiredArgs.add("faction name");
this.requirements = new CommandRequirements.Builder(Permission.LOOKUP) this.requirements = new CommandRequirements.Builder(Permission.LOOKUP)

View File

@ -13,7 +13,7 @@ public class CmdLowPower extends FCommand {
public CmdLowPower() { public CmdLowPower() {
super(); super();
this.aliases.add("lowpower"); this.aliases.addAll(Aliases.lowPower);
this.requirements = new CommandRequirements.Builder(Permission.POWER_ANY) this.requirements = new CommandRequirements.Builder(Permission.POWER_ANY)
.playerOnly() .playerOnly()

View File

@ -15,7 +15,7 @@ public class CmdMap extends FCommand {
public CmdMap() { public CmdMap() {
super(); super();
this.aliases.add("map"); this.aliases.addAll(Aliases.map_map);
this.optionalArgs.put("on/off", "once"); this.optionalArgs.put("on/off", "once");
this.requirements = new CommandRequirements.Builder(Permission.MAP) this.requirements = new CommandRequirements.Builder(Permission.MAP)

View File

@ -12,8 +12,7 @@ public class CmdMapHeight extends FCommand {
public CmdMapHeight() { public CmdMapHeight() {
super(); super();
this.aliases.add("mapheight"); this.aliases.addAll(Aliases.map_height);
this.aliases.add("mh");
this.optionalArgs.put("height", "height"); this.optionalArgs.put("height", "height");
this.requirements = new CommandRequirements.Builder(Permission.MAPHEIGHT) this.requirements = new CommandRequirements.Builder(Permission.MAPHEIGHT)

View File

@ -19,10 +19,7 @@ public class CmdMod extends FCommand {
public CmdMod() { public CmdMod() {
super(); super();
this.aliases.add("mod"); this.aliases.addAll(Aliases.mod);
this.aliases.add("setmod");
this.aliases.add("officer");
this.aliases.add("setofficer");
this.optionalArgs.put("player name", "name"); this.optionalArgs.put("player name", "name");

View File

@ -13,10 +13,7 @@ public class CmdModifyPower extends FCommand {
public CmdModifyPower() { public CmdModifyPower() {
super(); super();
this.aliases.add("pm"); this.aliases.addAll(Aliases.modifyPower);
this.aliases.add("mp");
this.aliases.add("modifypower");
this.aliases.add("modpower");
this.requiredArgs.add("name"); this.requiredArgs.add("name");
this.requiredArgs.add("power"); this.requiredArgs.add("power");

View File

@ -16,8 +16,7 @@ public class CmdNear extends FCommand {
public CmdNear() { public CmdNear() {
super(); super();
this.aliases.add("near"); this.aliases.addAll(Aliases.near);
this.aliases.add("nearby");
this.requirements = new CommandRequirements.Builder(Permission.NEAR) this.requirements = new CommandRequirements.Builder(Permission.NEAR)
.playerOnly() .playerOnly()

View File

@ -16,7 +16,7 @@ public class CmdOpen extends FCommand {
public CmdOpen() { public CmdOpen() {
super(); super();
this.aliases.add("open"); this.aliases.addAll(Aliases.open);
this.optionalArgs.put("yes/no", "flip"); this.optionalArgs.put("yes/no", "flip");
this.requirements = new CommandRequirements.Builder(Permission.OPEN) this.requirements = new CommandRequirements.Builder(Permission.OPEN)

View File

@ -14,7 +14,7 @@ public class CmdOwner extends FCommand {
public CmdOwner() { public CmdOwner() {
super(); super();
this.aliases.add("owner"); this.aliases.addAll(Aliases.owner_owner);
this.optionalArgs.put("player name", "you"); this.optionalArgs.put("player name", "you");
this.requirements = new CommandRequirements.Builder(Permission.OWNER) this.requirements = new CommandRequirements.Builder(Permission.OWNER)

View File

@ -15,7 +15,7 @@ public class CmdOwnerList extends FCommand {
public CmdOwnerList() { public CmdOwnerList() {
super(); super();
this.aliases.add("ownerlist"); this.aliases.addAll(Aliases.owner_list);
this.requirements = new CommandRequirements.Builder(Permission.OWNERLIST) this.requirements = new CommandRequirements.Builder(Permission.OWNERLIST)
.playerOnly() .playerOnly()

View File

@ -12,8 +12,7 @@ public class CmdPaypalSee extends FCommand {
*/ */
public CmdPaypalSee() { public CmdPaypalSee() {
this.aliases.add("seepaypal"); this.aliases.addAll(Aliases.paypal_see);
this.aliases.add("paypal");
this.optionalArgs.put("faction", "yours"); this.optionalArgs.put("faction", "yours");

View File

@ -13,7 +13,7 @@ public class CmdPaypalSet extends FCommand {
*/ */
public CmdPaypalSet() { public CmdPaypalSet() {
this.aliases.add("setpaypal"); this.aliases.addAll(Aliases.paypal_set);
this.optionalArgs.put("faction", "yours"); this.optionalArgs.put("faction", "yours");

View File

@ -14,7 +14,7 @@ public class CmdPeaceful extends FCommand {
public CmdPeaceful() { public CmdPeaceful() {
super(); super();
this.aliases.add("peaceful"); this.aliases.addAll(Aliases.peaceful);
this.requiredArgs.add("faction tag"); this.requiredArgs.add("faction tag");
this.requirements = new CommandRequirements.Builder(Permission.SET_PEACEFUL) this.requirements = new CommandRequirements.Builder(Permission.SET_PEACEFUL)

View File

@ -23,10 +23,7 @@ public class CmdPerm extends FCommand {
public CmdPerm() { public CmdPerm() {
super(); super();
this.aliases.add("perm"); this.aliases.addAll(Aliases.perm);
this.aliases.add("perms");
this.aliases.add("permission");
this.aliases.add("permissions");
this.optionalArgs.put("relation", "relation"); this.optionalArgs.put("relation", "relation");
this.optionalArgs.put("action", "action"); this.optionalArgs.put("action", "action");

View File

@ -16,7 +16,7 @@ public class CmdPermanent extends FCommand {
public CmdPermanent() { public CmdPermanent() {
super(); super();
this.aliases.add("permanent"); this.aliases.addAll(Aliases.permanent_faction);
this.requiredArgs.add("faction tag"); this.requiredArgs.add("faction tag");
this.requirements = new CommandRequirements.Builder(Permission.SET_PERMANENT) this.requirements = new CommandRequirements.Builder(Permission.SET_PERMANENT)

View File

@ -13,7 +13,7 @@ public class CmdPermanentPower extends FCommand {
public CmdPermanentPower() { public CmdPermanentPower() {
super(); super();
this.aliases.add("permanentpower"); this.aliases.addAll(Aliases.permanent_power);
this.requiredArgs.add("faction"); this.requiredArgs.add("faction");
this.requiredArgs.add("power"); this.requiredArgs.add("power");

View File

@ -7,7 +7,7 @@ import com.massivecraft.factions.zcore.util.TL;
public class CmdPlayerTitleToggle extends FCommand { public class CmdPlayerTitleToggle extends FCommand {
public CmdPlayerTitleToggle() { public CmdPlayerTitleToggle() {
super(); super();
this.aliases.add("titles"); this.aliases.addAll(Aliases.titles);
this.requirements = new CommandRequirements.Builder(Permission.TOGGLE_TITLES) this.requirements = new CommandRequirements.Builder(Permission.TOGGLE_TITLES)
.build(); .build();
} }

View File

@ -13,8 +13,7 @@ public class CmdPower extends FCommand {
public CmdPower() { public CmdPower() {
super(); super();
this.aliases.add("power"); this.aliases.addAll(Aliases.power_power);
this.aliases.add("pow");
this.optionalArgs.put("player name", "you"); this.optionalArgs.put("player name", "you");
this.requirements = new CommandRequirements.Builder(Permission.POWER) this.requirements = new CommandRequirements.Builder(Permission.POWER)

View File

@ -15,7 +15,7 @@ public class CmdPowerBoost extends FCommand {
public CmdPowerBoost() { public CmdPowerBoost() {
super(); super();
this.aliases.add("powerboost"); this.aliases.addAll(Aliases.power_boost);
this.requiredArgs.add("plugin|f|player|faction"); this.requiredArgs.add("plugin|f|player|faction");
this.requiredArgs.add("name"); this.requiredArgs.add("name");
this.requiredArgs.add("# or reset"); this.requiredArgs.add("# or reset");

View File

@ -16,7 +16,7 @@ public class CmdReload extends FCommand {
public CmdReload() { public CmdReload() {
super(); super();
this.aliases.add("reload"); this.aliases.addAll(Aliases.reload);
this.requirements = new CommandRequirements.Builder(Permission.RELOAD).build(); this.requirements = new CommandRequirements.Builder(Permission.RELOAD).build();
} }

View File

@ -15,9 +15,7 @@ public class CmdRules extends FCommand {
public CmdRules() { public CmdRules() {
super(); super();
aliases.add("r"); aliases.addAll(Aliases.rules);
aliases.add("rule");
aliases.add("rules");
this.optionalArgs.put("add/remove/set/clear", ""); this.optionalArgs.put("add/remove/set/clear", "");

View File

@ -11,8 +11,7 @@ public class CmdSB extends FCommand {
*/ */
public CmdSB() { public CmdSB() {
this.aliases.add("sb"); this.aliases.addAll(Aliases.scoreboard);
this.aliases.add("scoreboard");
this.requirements = new CommandRequirements.Builder(Permission.SCOREBOARD) this.requirements = new CommandRequirements.Builder(Permission.SCOREBOARD)
.playerOnly() .playerOnly()

View File

@ -13,8 +13,7 @@ public class CmdSaveAll extends FCommand {
public CmdSaveAll() { public CmdSaveAll() {
super(); super();
this.aliases.add("saveall"); this.aliases.addAll(Aliases.saveAll);
this.aliases.add("save");
this.requirements = new CommandRequirements.Builder(Permission.SAVE) this.requirements = new CommandRequirements.Builder(Permission.SAVE)
.build(); .build();

View File

@ -32,8 +32,7 @@ public class CmdSeeChunk extends FCommand {
public CmdSeeChunk() { public CmdSeeChunk() {
super(); super();
aliases.add("seechunk"); aliases.addAll(Aliases.seeChunk);
aliases.add("sc");
this.useParticles = FactionsPlugin.getInstance().getConfig().getBoolean("see-chunk.particles", true); this.useParticles = FactionsPlugin.getInstance().getConfig().getBoolean("see-chunk.particles", true);
interval = FactionsPlugin.getInstance().getConfig().getLong("see-chunk.interval", 10L); interval = FactionsPlugin.getInstance().getConfig().getLong("see-chunk.interval", 10L);

View File

@ -12,8 +12,7 @@ public class CmdSeeDiscord extends FCommand{
*/ */
public CmdSeeDiscord() { public CmdSeeDiscord() {
this.aliases.add("seediscord"); this.aliases.addAll(Aliases.discord_see);
this.aliases.add("discord");
this.optionalArgs.put("faction", "yours"); this.optionalArgs.put("faction", "yours");

View File

@ -11,7 +11,7 @@ public class CmdSetBanner extends FCommand {
public CmdSetBanner() { public CmdSetBanner() {
super(); super();
aliases.add("setbanner"); aliases.addAll(Aliases.setBanner);
this.requirements = new CommandRequirements.Builder(Permission.BANNER) this.requirements = new CommandRequirements.Builder(Permission.BANNER)
.playerOnly() .playerOnly()

View File

@ -13,10 +13,7 @@ public class CmdSetDefaultRole extends FCommand {
public CmdSetDefaultRole() { public CmdSetDefaultRole() {
super(); super();
this.aliases.add("defaultrole"); this.aliases.addAll(Aliases.setDefaultRole);
this.aliases.add("defaultrank");
this.aliases.add("default");
this.aliases.add("def");
this.requiredArgs.add("role"); this.requiredArgs.add("role");
this.requirements = new CommandRequirements.Builder(Permission.DEFAULTRANK) this.requirements = new CommandRequirements.Builder(Permission.DEFAULTRANK)

View File

@ -14,7 +14,7 @@ public class CmdSetDiscord extends FCommand {
public CmdSetDiscord(){ public CmdSetDiscord(){
super(); super();
this.aliases.add("setdiscord"); this.aliases.addAll(Aliases.discord_set);
this.optionalArgs.put("faction", "yours"); this.optionalArgs.put("faction", "yours");

View File

@ -15,8 +15,7 @@ public class CmdSetFWarp extends FCommand {
*/ */
public CmdSetFWarp() { public CmdSetFWarp() {
this.aliases.add("setwarp"); this.aliases.addAll(Aliases.setWarp);
this.aliases.add("sw");
this.requiredArgs.add("warp name"); this.requiredArgs.add("warp name");
this.optionalArgs.put("password", "password"); this.optionalArgs.put("password", "password");
this.requirements = new CommandRequirements.Builder(Permission.SETWARP).playerOnly().memberOnly().withAction(PermissableAction.SETWARP).build(); this.requirements = new CommandRequirements.Builder(Permission.SETWARP).playerOnly().memberOnly().withAction(PermissableAction.SETWARP).build();

View File

@ -12,8 +12,7 @@ public class CmdSetMaxVaults extends FCommand {
*/ */
public CmdSetMaxVaults() { public CmdSetMaxVaults() {
this.aliases.add("setmaxvaults"); this.aliases.addAll(Aliases.setMaxVaults);
this.aliases.add("smv");
this.requiredArgs.add("faction"); this.requiredArgs.add("faction");
this.requiredArgs.add("number"); this.requiredArgs.add("number");

View File

@ -12,7 +12,7 @@ public class CmdSethome extends FCommand {
*/ */
public CmdSethome() { public CmdSethome() {
this.aliases.add("sethome"); this.aliases.addAll(Aliases.setHome);
this.optionalArgs.put("faction tag", "mine"); this.optionalArgs.put("faction tag", "mine");
this.requirements = new CommandRequirements.Builder(Permission.SETHOME) this.requirements = new CommandRequirements.Builder(Permission.SETHOME)

View File

@ -21,8 +21,7 @@ public class CmdShow extends FCommand {
List<String> defaults = new ArrayList<>(); List<String> defaults = new ArrayList<>();
public CmdShow() { public CmdShow() {
this.aliases.add("show"); this.aliases.addAll(Aliases.show_show);
this.aliases.add("who");
// add defaults to /f show in case config doesnt have it // add defaults to /f show in case config doesnt have it
defaults.add("{header}"); defaults.add("{header}");

View File

@ -13,8 +13,7 @@ public class CmdShowClaims extends FCommand {
*/ */
public CmdShowClaims() { public CmdShowClaims() {
this.aliases.add("showclaims"); this.aliases.addAll(Aliases.show_claims);
this.aliases.add("showclaim");
this.requirements = new CommandRequirements.Builder(Permission.SHOWCLAIMS) this.requirements = new CommandRequirements.Builder(Permission.SHOWCLAIMS)
.playerOnly() .playerOnly()

View File

@ -17,7 +17,7 @@ public class CmdShowInvites extends FCommand {
public CmdShowInvites() { public CmdShowInvites() {
super(); super();
aliases.add("showinvites"); aliases.addAll(Aliases.show_invites);
this.requirements = new CommandRequirements.Builder(Permission.SHOW_INVITES) this.requirements = new CommandRequirements.Builder(Permission.SHOW_INVITES)
.playerOnly() .playerOnly()

View File

@ -13,8 +13,7 @@ public class CmdSpawnerLock extends FCommand {
public CmdSpawnerLock(){ public CmdSpawnerLock(){
super(); super();
this.aliases.add("lockspawners"); this.aliases.addAll(Aliases.spawnerlock);
this.aliases.add("spawnerlock");
this.requirements = new CommandRequirements.Builder(Permission.LOCKSPAWNERS) this.requirements = new CommandRequirements.Builder(Permission.LOCKSPAWNERS)
.build(); .build();

View File

@ -16,8 +16,7 @@ public class CmdStatus extends FCommand {
public CmdStatus() { public CmdStatus() {
super(); super();
this.aliases.add("status"); this.aliases.addAll(Aliases.status);
this.aliases.add("s");
this.requirements = new CommandRequirements.Builder(Permission.STATUS) this.requirements = new CommandRequirements.Builder(Permission.STATUS)
.playerOnly() .playerOnly()

View File

@ -10,8 +10,7 @@ public class CmdStealth extends FCommand {
*/ */
public CmdStealth() { public CmdStealth() {
this.aliases.add("ninja"); this.aliases.addAll(Aliases.stealth);
this.aliases.add("stealth");
this.requirements = new CommandRequirements.Builder(Permission.STEALTH) this.requirements = new CommandRequirements.Builder(Permission.STEALTH)
.playerOnly() .playerOnly()

View File

@ -18,7 +18,7 @@ public class CmdStrikes extends FCommand {
public CmdStrikes() { public CmdStrikes() {
super(); super();
this.aliases.add("strikes"); this.aliases.addAll(Aliases.strikes_strikes);
this.addSubCommand(cmdStrikesGive); this.addSubCommand(cmdStrikesGive);
this.addSubCommand(cmdStrikesInfo); this.addSubCommand(cmdStrikesInfo);

View File

@ -12,7 +12,7 @@ public class CmdStrikesGive extends FCommand {
public CmdStrikesGive() { public CmdStrikesGive() {
super(); super();
this.aliases.add("give"); this.aliases.addAll(Aliases.strikes_give);
this.requiredArgs.add(0, "faction"); this.requiredArgs.add(0, "faction");
this.requirements = new CommandRequirements.Builder(Permission.SETSTRIKES) this.requirements = new CommandRequirements.Builder(Permission.SETSTRIKES)

View File

@ -12,7 +12,7 @@ public class CmdStrikesInfo extends FCommand {
public CmdStrikesInfo() { public CmdStrikesInfo() {
super(); super();
this.aliases.add("info"); this.aliases.addAll(Aliases.strikes_info);
this.optionalArgs.put("target", "faction"); this.optionalArgs.put("target", "faction");
this.requirements = new CommandRequirements.Builder(Permission.SETSTRIKES) this.requirements = new CommandRequirements.Builder(Permission.SETSTRIKES)

View File

@ -12,7 +12,7 @@ public class CmdStrikesSet extends FCommand {
public CmdStrikesSet() { public CmdStrikesSet() {
super(); super();
this.aliases.add("set"); this.aliases.addAll(Aliases.strikes_set);
this.requiredArgs.add(0, "faction"); this.requiredArgs.add(0, "faction");
this.requiredArgs.add(1, "amount"); this.requiredArgs.add(1, "amount");

View File

@ -12,7 +12,7 @@ public class CmdStrikesTake extends FCommand {
public CmdStrikesTake() { public CmdStrikesTake() {
super(); super();
this.aliases.add("take"); this.aliases.addAll(Aliases.strikes_take);
this.requiredArgs.add(0, "faction"); this.requiredArgs.add(0, "faction");
this.requiredArgs.add(1, "number of strikes"); this.requiredArgs.add(1, "number of strikes");

View File

@ -19,8 +19,7 @@ public class CmdStuck extends FCommand {
public CmdStuck() { public CmdStuck() {
super(); super();
this.aliases.add("stuck"); this.aliases.addAll(Aliases.stuck);
this.aliases.add("halp!"); // halp!c:
this.requirements = new CommandRequirements.Builder(Permission.STUCK) this.requirements = new CommandRequirements.Builder(Permission.STUCK)

View File

@ -20,8 +20,7 @@ public class CmdTag extends FCommand {
*/ */
public CmdTag() { public CmdTag() {
this.aliases.add("tag"); this.aliases.addAll(Aliases.tag);
this.aliases.add("rename");
this.requiredArgs.add("faction tag"); this.requiredArgs.add("faction tag");

View File

@ -14,7 +14,7 @@ public class CmdTitle extends FCommand {
*/ */
public CmdTitle() { public CmdTitle() {
this.aliases.add("title"); this.aliases.addAll(Aliases.title);
this.requiredArgs.add("player name"); this.requiredArgs.add("player name");
this.optionalArgs.put("title", ""); this.optionalArgs.put("title", "");

View File

@ -12,9 +12,7 @@ public class CmdToggleAllianceChat extends FCommand {
public CmdToggleAllianceChat() { public CmdToggleAllianceChat() {
super(); super();
this.aliases.add("tac"); this.aliases.addAll(Aliases.toggleAllianceChat);
this.aliases.add("togglealliancechat");
this.aliases.add("ac");
this.requirements = new CommandRequirements.Builder(Permission.TOGGLE_ALLIANCE_CHAT) this.requirements = new CommandRequirements.Builder(Permission.TOGGLE_ALLIANCE_CHAT)
.playerOnly() .playerOnly()

View File

@ -18,8 +18,7 @@ public class CmdTop extends FCommand {
public CmdTop() { public CmdTop() {
super(); super();
this.aliases.add("top"); this.aliases.addAll(Aliases.top);
this.aliases.add("t");
this.requiredArgs.add("criteria"); this.requiredArgs.add("criteria");
this.optionalArgs.put("page", "1"); this.optionalArgs.put("page", "1");

View File

@ -15,7 +15,7 @@ public class CmdTpBanner extends FCommand {
public CmdTpBanner() { public CmdTpBanner() {
super(); super();
this.aliases.add("tpbanner"); this.aliases.addAll(Aliases.tpBanner);
this.requirements = new CommandRequirements.Builder(Permission.TPBANNER) this.requirements = new CommandRequirements.Builder(Permission.TPBANNER)
.playerOnly() .playerOnly()

View File

@ -14,7 +14,7 @@ public class CmdUnban extends FCommand {
public CmdUnban() { public CmdUnban() {
super(); super();
this.aliases.add("unban"); this.aliases.addAll(Aliases.unban);
this.requiredArgs.add("target"); this.requiredArgs.add("target");
this.requirements = new CommandRequirements.Builder(Permission.BAN) this.requirements = new CommandRequirements.Builder(Permission.BAN)

View File

@ -13,8 +13,7 @@ public class CmdUpgrades extends FCommand {
public CmdUpgrades() { public CmdUpgrades() {
super(); super();
this.aliases.add("upgrades"); this.aliases.addAll(Aliases.upgrades);
this.aliases.add("upgrade");
this.requirements = new CommandRequirements.Builder(Permission.UPGRADES) this.requirements = new CommandRequirements.Builder(Permission.UPGRADES)
.playerOnly() .playerOnly()

View File

@ -18,7 +18,7 @@ public class CmdVault extends FCommand {
*/ */
public CmdVault() { public CmdVault() {
this.aliases.add("vault"); this.aliases.addAll(Aliases.vault);
this.requirements = new CommandRequirements.Builder(Permission.VAULT) this.requirements = new CommandRequirements.Builder(Permission.VAULT)
.playerOnly() .playerOnly()

View File

@ -13,8 +13,7 @@ public class CmdViewChest extends FCommand {
public CmdViewChest() { public CmdViewChest() {
super(); super();
this.aliases.add("viewchest"); this.aliases.addAll(Aliases.viewChest);
this.aliases.add("viewpv");
this.requiredArgs.add("faction name"); this.requiredArgs.add("faction name");

View File

@ -1,6 +1,7 @@
package com.massivecraft.factions.cmd.alts; package com.massivecraft.factions.cmd.alts;
import com.massivecraft.factions.FactionsPlugin; import com.massivecraft.factions.FactionsPlugin;
import com.massivecraft.factions.cmd.Aliases;
import com.massivecraft.factions.cmd.CommandContext; import com.massivecraft.factions.cmd.CommandContext;
import com.massivecraft.factions.cmd.CommandRequirements; import com.massivecraft.factions.cmd.CommandRequirements;
import com.massivecraft.factions.cmd.FCommand; import com.massivecraft.factions.cmd.FCommand;
@ -20,10 +21,7 @@ public class CmdAlts extends FCommand {
public CmdAlts() { public CmdAlts() {
super(); super();
this.aliases.addAll(Aliases.alts_alts);
this.aliases.add("alts");
this.aliases.add("alt");
this.addSubCommand(this.cmdInviteAlt); this.addSubCommand(this.cmdInviteAlt);
this.addSubCommand(this.cmdAltsList); this.addSubCommand(this.cmdAltsList);
this.addSubCommand(this.cmdKickAlt); this.addSubCommand(this.cmdKickAlt);

View File

@ -3,6 +3,7 @@ package com.massivecraft.factions.cmd.alts;
import com.google.common.base.Joiner; import com.google.common.base.Joiner;
import com.massivecraft.factions.FPlayer; import com.massivecraft.factions.FPlayer;
import com.massivecraft.factions.Faction; import com.massivecraft.factions.Faction;
import com.massivecraft.factions.cmd.Aliases;
import com.massivecraft.factions.cmd.CommandContext; import com.massivecraft.factions.cmd.CommandContext;
import com.massivecraft.factions.cmd.CommandRequirements; import com.massivecraft.factions.cmd.CommandRequirements;
import com.massivecraft.factions.cmd.FCommand; import com.massivecraft.factions.cmd.FCommand;
@ -19,8 +20,7 @@ public class CmdAltsList extends FCommand {
public CmdAltsList() { public CmdAltsList() {
super(); super();
this.aliases.add("list"); this.aliases.addAll(Aliases.alts_list);
this.aliases.add("l");
this.optionalArgs.put("faction", "yours"); this.optionalArgs.put("faction", "yours");

View File

@ -3,6 +3,7 @@ package com.massivecraft.factions.cmd.alts;
import com.massivecraft.factions.Conf; import com.massivecraft.factions.Conf;
import com.massivecraft.factions.FPlayer; import com.massivecraft.factions.FPlayer;
import com.massivecraft.factions.FactionsPlugin; import com.massivecraft.factions.FactionsPlugin;
import com.massivecraft.factions.cmd.Aliases;
import com.massivecraft.factions.cmd.CommandContext; import com.massivecraft.factions.cmd.CommandContext;
import com.massivecraft.factions.cmd.CommandRequirements; import com.massivecraft.factions.cmd.CommandRequirements;
import com.massivecraft.factions.cmd.FCommand; import com.massivecraft.factions.cmd.FCommand;
@ -24,7 +25,7 @@ public class CmdInviteAlt extends FCommand {
public CmdInviteAlt() { public CmdInviteAlt() {
super(); super();
this.aliases.add("invite"); this.aliases.addAll(Aliases.alts_invite);
this.requiredArgs.add("player name"); this.requiredArgs.add("player name");
this.requirements = new CommandRequirements.Builder(Permission.INVITE) this.requirements = new CommandRequirements.Builder(Permission.INVITE)

View File

@ -4,6 +4,7 @@ import com.massivecraft.factions.Conf;
import com.massivecraft.factions.FPlayer; import com.massivecraft.factions.FPlayer;
import com.massivecraft.factions.Faction; import com.massivecraft.factions.Faction;
import com.massivecraft.factions.FactionsPlugin; import com.massivecraft.factions.FactionsPlugin;
import com.massivecraft.factions.cmd.Aliases;
import com.massivecraft.factions.cmd.CommandContext; import com.massivecraft.factions.cmd.CommandContext;
import com.massivecraft.factions.cmd.CommandRequirements; import com.massivecraft.factions.cmd.CommandRequirements;
import com.massivecraft.factions.cmd.FCommand; import com.massivecraft.factions.cmd.FCommand;
@ -26,7 +27,7 @@ public class CmdKickAlt extends FCommand {
public CmdKickAlt(){ public CmdKickAlt(){
super(); super();
this.aliases.add("kick"); this.aliases.addAll(Aliases.alts_kick);
this.requiredArgs.add("player name"); this.requiredArgs.add("player name");
this.requirements = new CommandRequirements.Builder(Permission.KICK) this.requirements = new CommandRequirements.Builder(Permission.KICK)

View File

@ -5,6 +5,7 @@ package com.massivecraft.factions.cmd.audit;
*/ */
import com.massivecraft.factions.Faction; import com.massivecraft.factions.Faction;
import com.massivecraft.factions.cmd.Aliases;
import com.massivecraft.factions.cmd.CommandContext; import com.massivecraft.factions.cmd.CommandContext;
import com.massivecraft.factions.cmd.CommandRequirements; import com.massivecraft.factions.cmd.CommandRequirements;
import com.massivecraft.factions.cmd.FCommand; import com.massivecraft.factions.cmd.FCommand;
@ -16,9 +17,7 @@ public class CmdAudit extends FCommand {
public CmdAudit() { public CmdAudit() {
super(); super();
this.aliases.add("audit"); this.aliases.addAll(Aliases.audit);
this.aliases.add("logs");
this.aliases.add("log");
this.requirements = new CommandRequirements.Builder(Permission.AUDIT) this.requirements = new CommandRequirements.Builder(Permission.AUDIT)

View File

@ -2,6 +2,7 @@ package com.massivecraft.factions.cmd.check;
import com.massivecraft.factions.Conf; import com.massivecraft.factions.Conf;
import com.massivecraft.factions.FactionsPlugin; import com.massivecraft.factions.FactionsPlugin;
import com.massivecraft.factions.cmd.Aliases;
import com.massivecraft.factions.cmd.CommandContext; import com.massivecraft.factions.cmd.CommandContext;
import com.massivecraft.factions.cmd.CommandRequirements; import com.massivecraft.factions.cmd.CommandRequirements;
import com.massivecraft.factions.cmd.FCommand; import com.massivecraft.factions.cmd.FCommand;
@ -31,7 +32,7 @@ public class CmdCheck extends FCommand {
public CmdCheck() { public CmdCheck() {
this.simpleDateFormat = new SimpleDateFormat(Conf.dateFormat); this.simpleDateFormat = new SimpleDateFormat(Conf.dateFormat);
this.aliases.add("check"); this.aliases.addAll(Aliases.check);
this.requiredArgs.add("walls/buffers/settings/leaderboard"); this.requiredArgs.add("walls/buffers/settings/leaderboard");
this.requirements = new CommandRequirements.Builder(Permission.CHECK) this.requirements = new CommandRequirements.Builder(Permission.CHECK)

Some files were not shown because too many files have changed in this diff Show More