TL References Properly to Generic_Disabled

This commit is contained in:
Driftay 2019-12-03 05:16:37 -05:00
parent 0a60a581f5
commit ca9502a4b6
16 changed files with 16 additions and 16 deletions

View File

@ -26,7 +26,7 @@ public class CmdFocus extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("ffocus.Enabled")) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("ffocus.Enabled")) {
context.msg(TL.GENERIC_DISABLED); context.msg(TL.GENERIC_DISABLED, "Faction Focus");
return; return;
} }
FPlayer target = context.argAsFPlayer(0); FPlayer target = context.argAsFPlayer(0);

View File

@ -27,7 +27,7 @@ public class CmdGetVault extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fvault.Enabled")) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("fvault.Enabled")) {
context.fPlayer.sendMessage("This command is disabled!"); context.fPlayer.msg(TL.GENERIC_DISABLED, "Faction Vaults");
return; return;
} }
Location vaultLocation = context.faction.getVault(); Location vaultLocation = context.faction.getVault();

View File

@ -36,7 +36,7 @@ public class CmdInventorySee extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-inventory-see.Enabled")) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-inventory-see.Enabled")) {
context.msg(TL.GENERIC_DISABLED); context.msg(TL.GENERIC_DISABLED, "Inventory See");
return; return;
} }

View File

@ -25,7 +25,7 @@ public class CmdPaypalSee extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fpaypal.Enabled")) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("fpaypal.Enabled")) {
context.msg(TL.GENERIC_DISABLED); context.msg(TL.GENERIC_DISABLED, "Faction Paypals");
return; return;
} }

View File

@ -29,7 +29,7 @@ public class CmdPaypalSet extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fpaypal.Enabled")) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("fpaypal.Enabled")) {
context.fPlayer.msg(TL.GENERIC_DISABLED); context.fPlayer.msg(TL.GENERIC_DISABLED, "Faction Paypals");
return; return;
} }
if (context.fPlayer.getRole() != Role.LEADER && !context.fPlayer.isAdminBypassing()) { if (context.fPlayer.getRole() != Role.LEADER && !context.fPlayer.isAdminBypassing()) {

View File

@ -25,7 +25,7 @@ public class CmdSeeDiscord extends FCommand{
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fdiscord.Enabled")) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("fdiscord.Enabled")) {
context.msg(TL.GENERIC_DISABLED); context.msg(TL.GENERIC_DISABLED, "Faction Discords");
return; return;
} }

View File

@ -32,7 +32,7 @@ public class CmdVault extends FCommand {
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fvault.Enabled")) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("fvault.Enabled")) {
context.fPlayer.sendMessage("This command is disabled!"); context.fPlayer.msg(TL.GENERIC_DISABLED, "Faction Vaults");
return; return;
} }

View File

@ -26,7 +26,7 @@ public class CmdViewChest extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fchest.Enabled")) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("fchest.Enabled")) {
context.msg(TL.GENERIC_DISABLED); context.msg(TL.GENERIC_DISABLED, "Faction Chests");
return; return;
} }

View File

@ -37,7 +37,7 @@ public class CmdAlts extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-alts.Enabled", false)) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-alts.Enabled", false)) {
context.msg(TL.GENERIC_DISABLED); context.msg(TL.GENERIC_DISABLED, "Faction Alts");
return; return;
} }

View File

@ -34,7 +34,7 @@ public class CmdInviteAlt extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-alts.Enabled", false)) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-alts.Enabled", false)) {
context.fPlayer.msg(TL.GENERIC_DISABLED); context.msg(TL.GENERIC_DISABLED, "Faction Alts");
return; return;
} }

View File

@ -37,7 +37,7 @@ public class CmdKickAlt extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-alts.Enabled", false)) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-alts.Enabled", false)) {
context.fPlayer.msg(TL.GENERIC_DISABLED); context.msg(TL.GENERIC_DISABLED, "Faction Alts");
return; return;
} }

View File

@ -30,7 +30,7 @@ public class CmdChest extends FCommand {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("fchest.Enabled")) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("fchest.Enabled")) {
context.fPlayer.sendMessage("This command is disabled!"); context.msg(TL.GENERIC_DISABLED, "Faction Chests");
return; return;
} }
// This permission check is way too explicit but it's clean // This permission check is way too explicit but it's clean

View File

@ -36,7 +36,7 @@ public class CmdCorner extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (FactionsPlugin.getInstance().mc17) { if (FactionsPlugin.getInstance().mc17) {
context.player.sendMessage(ChatColor.RED + "This command is disabled!"); context.msg(TL.GENERIC_DISABLED, "Faction Corners");
return; return;
} }
FLocation to = new FLocation(context.player.getLocation()); FLocation to = new FLocation(context.player.getLocation());

View File

@ -35,7 +35,7 @@ public class CmdPoints extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-points.Enabled", true)) { if (!FactionsPlugin.getInstance().getConfig().getBoolean("f-points.Enabled", true)) {
context.msg(TL.GENERIC_DISABLED); context.msg(TL.GENERIC_DISABLED, "Faction Points");
return; return;
} }
context.commandChain.add(this); context.commandChain.add(this);

View File

@ -43,7 +43,7 @@ public class CmdTntFill extends FCommand {
@Override @Override
public void perform(CommandContext context) { public void perform(CommandContext context) {
if (!FactionsPlugin.instance.getConfig().getBoolean("Tntfill.enabled")) { if (!FactionsPlugin.instance.getConfig().getBoolean("Tntfill.enabled")) {
context.msg(TL.GENERIC_DISABLED); context.msg(TL.COMMAND_TNT_DISABLED_MSG);
return; return;
} }

View File

@ -1031,7 +1031,7 @@ public enum TL {
GENERIC_FACTIONLESS("factionless"), GENERIC_FACTIONLESS("factionless"),
GENERIC_SERVERADMIN("A server admin"), GENERIC_SERVERADMIN("A server admin"),
GENERIC_SERVER("Server"), GENERIC_SERVER("Server"),
GENERIC_DISABLED("disabled"), GENERIC_DISABLED("&c&l[!] &7The feature &b%1$s &7is currently disabled."),
GENERIC_ENABLED("enabled"), GENERIC_ENABLED("enabled"),
GENERIC_INFINITY("∞"), GENERIC_INFINITY("∞"),
GENERIC_NULLPLAYER("null player"), GENERIC_NULLPLAYER("null player"),