TL References Properly to Generic_Disabled
This commit is contained in:
parent
0a60a581f5
commit
ca9502a4b6
@ -26,7 +26,7 @@ public class CmdFocus extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("ffocus.Enabled")) {
|
||||
context.msg(TL.GENERIC_DISABLED);
|
||||
context.msg(TL.GENERIC_DISABLED, "Faction Focus");
|
||||
return;
|
||||
}
|
||||
FPlayer target = context.argAsFPlayer(0);
|
||||
|
@ -27,7 +27,7 @@ public class CmdGetVault extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fvault.Enabled")) {
|
||||
context.fPlayer.sendMessage("This command is disabled!");
|
||||
context.fPlayer.msg(TL.GENERIC_DISABLED, "Faction Vaults");
|
||||
return;
|
||||
}
|
||||
Location vaultLocation = context.faction.getVault();
|
||||
|
@ -36,7 +36,7 @@ public class CmdInventorySee extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-inventory-see.Enabled")) {
|
||||
context.msg(TL.GENERIC_DISABLED);
|
||||
context.msg(TL.GENERIC_DISABLED, "Inventory See");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ public class CmdPaypalSee extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fpaypal.Enabled")) {
|
||||
context.msg(TL.GENERIC_DISABLED);
|
||||
context.msg(TL.GENERIC_DISABLED, "Faction Paypals");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ public class CmdPaypalSet extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fpaypal.Enabled")) {
|
||||
context.fPlayer.msg(TL.GENERIC_DISABLED);
|
||||
context.fPlayer.msg(TL.GENERIC_DISABLED, "Faction Paypals");
|
||||
return;
|
||||
}
|
||||
if (context.fPlayer.getRole() != Role.LEADER && !context.fPlayer.isAdminBypassing()) {
|
||||
|
@ -25,7 +25,7 @@ public class CmdSeeDiscord extends FCommand{
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fdiscord.Enabled")) {
|
||||
context.msg(TL.GENERIC_DISABLED);
|
||||
context.msg(TL.GENERIC_DISABLED, "Faction Discords");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ public class CmdVault extends FCommand {
|
||||
public void perform(CommandContext context) {
|
||||
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fvault.Enabled")) {
|
||||
context.fPlayer.sendMessage("This command is disabled!");
|
||||
context.fPlayer.msg(TL.GENERIC_DISABLED, "Faction Vaults");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ public class CmdViewChest extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fchest.Enabled")) {
|
||||
context.msg(TL.GENERIC_DISABLED);
|
||||
context.msg(TL.GENERIC_DISABLED, "Faction Chests");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ public class CmdAlts extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-alts.Enabled", false)) {
|
||||
context.msg(TL.GENERIC_DISABLED);
|
||||
context.msg(TL.GENERIC_DISABLED, "Faction Alts");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ public class CmdInviteAlt extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-alts.Enabled", false)) {
|
||||
context.fPlayer.msg(TL.GENERIC_DISABLED);
|
||||
context.msg(TL.GENERIC_DISABLED, "Faction Alts");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ public class CmdKickAlt extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-alts.Enabled", false)) {
|
||||
context.fPlayer.msg(TL.GENERIC_DISABLED);
|
||||
context.msg(TL.GENERIC_DISABLED, "Faction Alts");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ public class CmdChest extends FCommand {
|
||||
|
||||
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fchest.Enabled")) {
|
||||
context.fPlayer.sendMessage("This command is disabled!");
|
||||
context.msg(TL.GENERIC_DISABLED, "Faction Chests");
|
||||
return;
|
||||
}
|
||||
// This permission check is way too explicit but it's clean
|
||||
|
@ -36,7 +36,7 @@ public class CmdCorner extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (FactionsPlugin.getInstance().mc17) {
|
||||
context.player.sendMessage(ChatColor.RED + "This command is disabled!");
|
||||
context.msg(TL.GENERIC_DISABLED, "Faction Corners");
|
||||
return;
|
||||
}
|
||||
FLocation to = new FLocation(context.player.getLocation());
|
||||
|
@ -35,7 +35,7 @@ public class CmdPoints extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-points.Enabled", true)) {
|
||||
context.msg(TL.GENERIC_DISABLED);
|
||||
context.msg(TL.GENERIC_DISABLED, "Faction Points");
|
||||
return;
|
||||
}
|
||||
context.commandChain.add(this);
|
||||
|
@ -43,7 +43,7 @@ public class CmdTntFill extends FCommand {
|
||||
@Override
|
||||
public void perform(CommandContext context) {
|
||||
if (!FactionsPlugin.instance.getConfig().getBoolean("Tntfill.enabled")) {
|
||||
context.msg(TL.GENERIC_DISABLED);
|
||||
context.msg(TL.COMMAND_TNT_DISABLED_MSG);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1031,7 +1031,7 @@ public enum TL {
|
||||
GENERIC_FACTIONLESS("factionless"),
|
||||
GENERIC_SERVERADMIN("A server admin"),
|
||||
GENERIC_SERVER("Server"),
|
||||
GENERIC_DISABLED("disabled"),
|
||||
GENERIC_DISABLED("&c&l[!] &7The feature &b%1$s &7is currently disabled."),
|
||||
GENERIC_ENABLED("enabled"),
|
||||
GENERIC_INFINITY("∞"),
|
||||
GENERIC_NULLPLAYER("null player"),
|
||||
|
Loading…
Reference in New Issue
Block a user