moar translatify :3
Add some missing TL nodes Remove Lang class You can now into changing command descriptions
This commit is contained in:
@@ -205,8 +205,6 @@ public class Conf {
|
||||
public static boolean ownedAreaProtectMaterials = true;
|
||||
public static boolean ownedAreaDenyUseage = true;
|
||||
|
||||
public static String ownedLandMessage = "Owner(s): ";
|
||||
public static String publicLandMessage = "Public faction land.";
|
||||
public static boolean ownedMessageOnBorder = true;
|
||||
public static boolean ownedMessageInsideTerritory = true;
|
||||
public static boolean ownedMessageByChunk = false;
|
||||
|
||||
@@ -165,15 +165,15 @@ public class FactionsPlayerListener implements Listener {
|
||||
if (changedFaction) {
|
||||
me.sendFactionHereMessage();
|
||||
if (Conf.ownedAreasEnabled && Conf.ownedMessageOnBorder && myFaction == factionTo && !ownersTo.isEmpty()) {
|
||||
me.sendMessage(Conf.ownedLandMessage + ownersTo);
|
||||
me.sendMessage(TL.GENERIC_OWNERS.format(ownersTo));
|
||||
}
|
||||
} else if (Conf.ownedAreasEnabled && Conf.ownedMessageInsideTerritory && factionFrom == factionTo && myFaction == factionTo) {
|
||||
String ownersFrom = myFaction.getOwnerListString(from);
|
||||
if (Conf.ownedMessageByChunk || !ownersFrom.equals(ownersTo)) {
|
||||
if (!ownersTo.isEmpty()) {
|
||||
me.sendMessage(Conf.ownedLandMessage + ownersTo);
|
||||
} else if (!Conf.publicLandMessage.isEmpty()) {
|
||||
me.sendMessage(Conf.publicLandMessage);
|
||||
me.sendMessage(TL.GENERIC_OWNERS.format(ownersTo));
|
||||
} else if (!TL.GENERIC_PUBLICLAND.toString().isEmpty()) {
|
||||
me.sendMessage(TL.GENERIC_PUBLICLAND.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,8 @@ import com.massivecraft.factions.FPlayer;
|
||||
import com.massivecraft.factions.P;
|
||||
import com.massivecraft.factions.integration.Econ;
|
||||
import com.massivecraft.factions.scoreboards.FSidebarProvider;
|
||||
import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
|
||||
@@ -29,7 +31,7 @@ public class FDefaultSidebar extends FSidebarProvider {
|
||||
}
|
||||
|
||||
private String replace(FPlayer fplayer, String s) {
|
||||
String faction = !fplayer.getFaction().isNone() ? fplayer.getFaction().getTag() : "factionless";
|
||||
String faction = !fplayer.getFaction().isNone() ? fplayer.getFaction().getTag() : TL.GENERIC_FACTIONLESS.toString();
|
||||
String powerBoost = String.valueOf((int) fplayer.getPowerBoost());
|
||||
s = s.replace("{name}", fplayer.getName()).replace("{power}", String.valueOf(fplayer.getPowerRounded())).replace("{balance}", String.valueOf(Econ.getFriendlyBalance(fplayer.getPlayer().getUniqueId()))).replace("{faction}", faction).replace("{maxPower}", String.valueOf(fplayer.getPowerMaxRounded())).replace("{totalOnline}", String.valueOf(Bukkit.getServer().getOnlinePlayers().length)).replace("{powerBoost}", powerBoost);
|
||||
return ChatColor.translateAlternateColorCodes('&', s);
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
package com.massivecraft.factions.struct;
|
||||
|
||||
import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
public enum ChatMode {
|
||||
FACTION(2, "faction chat"),
|
||||
ALLIANCE(1, "alliance chat"),
|
||||
PUBLIC(0, "public chat");
|
||||
FACTION(2, TL.CHAT_FACTION),
|
||||
ALLIANCE(1, TL.CHAT_ALLIANCE),
|
||||
PUBLIC(0, TL.CHAT_PUBLIC);
|
||||
|
||||
public final int value;
|
||||
public final String nicename;
|
||||
public final TL nicename;
|
||||
|
||||
private ChatMode(final int value, final String nicename) {
|
||||
private ChatMode(final int value, final TL nicename) {
|
||||
this.value = value;
|
||||
this.nicename = nicename;
|
||||
}
|
||||
@@ -23,7 +25,7 @@ public enum ChatMode {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.nicename;
|
||||
return this.nicename.toString();
|
||||
}
|
||||
|
||||
public ChatMode getNext() {
|
||||
|
||||
@@ -2,11 +2,14 @@ package com.massivecraft.factions.util;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
|
||||
import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class AsciiCompass {
|
||||
|
||||
public enum Point {
|
||||
|
||||
N('N'),
|
||||
NE('/'),
|
||||
E('E'),
|
||||
@@ -27,8 +30,16 @@ public class AsciiCompass {
|
||||
return String.valueOf(this.asciiChar);
|
||||
}
|
||||
|
||||
public String getTranslation(){
|
||||
if(this==N) return TL.COMPASS_SHORT_NORTH.toString();
|
||||
if(this==E) return TL.COMPASS_SHORT_EAST.toString();
|
||||
if(this==S) return TL.COMPASS_SHORT_SOUTH.toString();
|
||||
if(this==W) return TL.COMPASS_SHORT_WEST.toString();
|
||||
return toString();
|
||||
}
|
||||
|
||||
public String toString(boolean isActive, ChatColor colorActive, String colorDefault) {
|
||||
return (isActive ? colorActive : colorDefault) + String.valueOf(this.asciiChar);
|
||||
return (isActive ? colorActive : colorDefault) + getTranslation();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.massivecraft.factions.util;
|
||||
import com.massivecraft.factions.Conf;
|
||||
import com.massivecraft.factions.FPlayer;
|
||||
import com.massivecraft.factions.P;
|
||||
import com.massivecraft.factions.zcore.util.TL;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.entity.Creature;
|
||||
import org.bukkit.entity.Entity;
|
||||
@@ -64,16 +66,16 @@ public class MiscUtil {
|
||||
ArrayList<String> errors = new ArrayList<String>();
|
||||
|
||||
if (getComparisonString(str).length() < Conf.factionTagLengthMin) {
|
||||
errors.add(P.p.txt.parse("<i>The faction tag can't be shorter than <h>%s<i> chars.", Conf.factionTagLengthMin));
|
||||
errors.add(P.p.txt.parse(TL.GENERIC_FACTIONTAG_TOOSHORT.toString(), Conf.factionTagLengthMin));
|
||||
}
|
||||
|
||||
if (str.length() > Conf.factionTagLengthMax) {
|
||||
errors.add(P.p.txt.parse("<i>The faction tag can't be longer than <h>%s<i> chars.", Conf.factionTagLengthMax));
|
||||
errors.add(P.p.txt.parse(TL.GENERIC_FACTIONTAG_TOOLONG.toString(), Conf.factionTagLengthMax));
|
||||
}
|
||||
|
||||
for (char c : str.toCharArray()) {
|
||||
if (!substanceChars.contains(String.valueOf(c))) {
|
||||
errors.add(P.p.txt.parse("<i>Faction tag must be alphanumeric. \"<h>%s<i>\" is not allowed.", c));
|
||||
errors.add(P.p.txt.parse(TL.GENERIC_FACTIONTAG_ALPHANUMERIC.toString(), c));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
package com.massivecraft.factions.zcore;
|
||||
|
||||
public class Lang {
|
||||
public static final String permForbidden = "<b>You don't have permission to %s.";
|
||||
public static final String permDoThat = "do that";
|
||||
|
||||
public static final String commandSenderMustBePlayer = "<b>This command can only be used by ingame players.";
|
||||
public static final String commandToFewArgs = "<b>Too few arguments. <i>Use like this:";
|
||||
public static final String commandToManyArgs = "<b>Strange argument \"<p>%s<b>\". <i>Use the command like this:";
|
||||
}
|
||||
@@ -52,9 +52,9 @@ public abstract class MCommand<T extends MPlugin> {
|
||||
|
||||
public String getHelpShort() {
|
||||
if (this.helpShort == null) {
|
||||
String pdesc = p.perm.getPermissionDescription(this.permission);
|
||||
TL pdesc = TL.valueOf(this.permission.toUpperCase().replace('.', '_'));
|
||||
if (pdesc != null) {
|
||||
return pdesc;
|
||||
return pdesc.toString();
|
||||
}
|
||||
return "*info unavailable*";
|
||||
}
|
||||
@@ -158,7 +158,7 @@ public abstract class MCommand<T extends MPlugin> {
|
||||
public boolean validSenderType(CommandSender sender, boolean informSenderIfNot) {
|
||||
if (this.senderMustBePlayer && !(sender instanceof Player)) {
|
||||
if (informSenderIfNot) {
|
||||
msg(Lang.commandSenderMustBePlayer);
|
||||
msg(TL.GENERIC_PLAYERONLY);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -172,7 +172,7 @@ public abstract class MCommand<T extends MPlugin> {
|
||||
public boolean validArgs(List<String> args, CommandSender sender) {
|
||||
if (args.size() < this.requiredArgs.size()) {
|
||||
if (sender != null) {
|
||||
msg(Lang.commandToFewArgs);
|
||||
msg(TL.GENERIC_ARGS_TOOFEW);
|
||||
sender.sendMessage(this.getUseageTemplate());
|
||||
}
|
||||
return false;
|
||||
@@ -182,7 +182,7 @@ public abstract class MCommand<T extends MPlugin> {
|
||||
if (sender != null) {
|
||||
// Get the to many string slice
|
||||
List<String> theToMany = args.subList(this.requiredArgs.size() + this.optionalArgs.size(), args.size());
|
||||
msg(Lang.commandToManyArgs, TextUtil.implode(theToMany, " "));
|
||||
msg(TL.GENERIC_ARGS_TOOMANY, TextUtil.implode(theToMany, " "));
|
||||
sender.sendMessage(this.getUseageTemplate());
|
||||
}
|
||||
return false;
|
||||
@@ -372,7 +372,7 @@ public abstract class MCommand<T extends MPlugin> {
|
||||
}
|
||||
|
||||
if (msg && ret == null) {
|
||||
this.msg("<b>No player \"<p>%s<b>\" could not be found.", name);
|
||||
this.msg(TL.GENERIC_NOPLAYERFOUND, name);
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -402,7 +402,7 @@ public abstract class MCommand<T extends MPlugin> {
|
||||
}
|
||||
|
||||
if (msg && ret == null) {
|
||||
this.msg("<b>No player match found for \"<p>%s<b>\".", name);
|
||||
this.msg(TL.GENERIC_NOPLAYERMATCH, name);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -584,17 +584,17 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
boolean perm = myFaction.isPermanent();
|
||||
|
||||
if (!perm && this.getRole() == Role.ADMIN && myFaction.getFPlayers().size() > 1) {
|
||||
msg("<b>You must give the admin role to someone else first.");
|
||||
msg(TL.LEAVE_PASSADMIN);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Conf.canLeaveWithNegativePower && this.getPower() < 0) {
|
||||
msg("<b>You cannot leave until your power is positive.");
|
||||
msg(TL.LEAVE_NEGATIVEPOWER);
|
||||
return;
|
||||
}
|
||||
|
||||
// if economy is enabled and they're not on the bypass list, make sure they can pay
|
||||
if (makePay && !Econ.hasAtLeast(this, Conf.econCostLeave, "to leave your faction.")) {
|
||||
if (makePay && !Econ.hasAtLeast(this, Conf.econCostLeave, TL.LEAVE_TOLEAVE.toString())) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -605,7 +605,7 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
}
|
||||
|
||||
// then make 'em pay (if applicable)
|
||||
if (makePay && !Econ.modifyMoney(this, -Conf.econCostLeave, "to leave your faction.", "for leaving your faction.")) {
|
||||
if (makePay && !Econ.modifyMoney(this, -Conf.econCostLeave, TL.LEAVE_TOLEAVE.toString(), TL.LEAVE_FORLEAVE.toString())) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -619,11 +619,11 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
|
||||
if (myFaction.isNormal()) {
|
||||
for (FPlayer fplayer : myFaction.getFPlayersWhereOnline(true)) {
|
||||
fplayer.msg("%s<i> left %s<i>.", this.describeTo(fplayer, true), myFaction.describeTo(fplayer));
|
||||
fplayer.msg(TL.LEAVE_LEFT, this.describeTo(fplayer, true), myFaction.describeTo(fplayer));
|
||||
}
|
||||
|
||||
if (Conf.logFactionLeave) {
|
||||
P.p.log(this.getName() + " left the faction: " + myFaction.getTag());
|
||||
P.p.log(TL.LEAVE_LEFT.format(this.getName(),myFaction.getTag()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -633,12 +633,12 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
if (myFaction.isNormal() && !perm && myFaction.getFPlayers().isEmpty()) {
|
||||
// Remove this faction
|
||||
for (FPlayer fplayer : FPlayers.getInstance().getOnlinePlayers()) {
|
||||
fplayer.msg("<i>%s<i> was disbanded.", myFaction.describeTo(fplayer, true));
|
||||
fplayer.msg(TL.LEAVE_DISBANDED, myFaction.describeTo(fplayer, true));
|
||||
}
|
||||
|
||||
Factions.getInstance().removeFaction(myFaction.getId());
|
||||
if (Conf.logFactionDisband) {
|
||||
P.p.log("The faction " + myFaction.getTag() + " (" + myFaction.getId() + ") was disbanded due to the last player (" + this.getName() + ") leaving.");
|
||||
P.p.log(TL.LEAVE_DISBANDEDLOG.format(myFaction.getTag(),myFaction.getId(),this.getName()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -656,9 +656,9 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
|
||||
if (Conf.worldGuardChecking && Worldguard.checkForRegionsInChunk(location)) {
|
||||
// Checks for WorldGuard regions in the chunk attempting to be claimed
|
||||
error = P.p.txt.parse("<b>This land is protected");
|
||||
error = P.p.txt.parse(TL.CLAIM_PROTECTED.toString());
|
||||
} else if (Conf.worldsNoClaiming.contains(flocation.getWorldName())) {
|
||||
error = P.p.txt.parse("<b>Sorry, this world has land claiming disabled.");
|
||||
error = P.p.txt.parse(TL.CLAIM_DISABLED.toString());
|
||||
} else if (this.isAdminBypassing()) {
|
||||
return true;
|
||||
} else if (forFaction.isSafeZone() && Permission.MANAGE_SAFE_ZONE.has(getPlayer())) {
|
||||
@@ -666,39 +666,39 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
} else if (forFaction.isWarZone() && Permission.MANAGE_WAR_ZONE.has(getPlayer())) {
|
||||
return true;
|
||||
} else if (myFaction != forFaction) {
|
||||
error = P.p.txt.parse("<b>You can't claim land for <h>%s<b>.", forFaction.describeTo(this));
|
||||
error = P.p.txt.parse(TL.CLAIM_CANTCLAIM.toString(), forFaction.describeTo(this));
|
||||
} else if (forFaction == currentFaction) {
|
||||
error = P.p.txt.parse("%s<i> already own this land.", forFaction.describeTo(this, true));
|
||||
error = P.p.txt.parse(TL.CLAIM_ALREADYOWN.toString(), forFaction.describeTo(this, true));
|
||||
} else if (this.getRole().value < Role.MODERATOR.value) {
|
||||
error = P.p.txt.parse("<b>You must be <h>%s<b> to claim land.", Role.MODERATOR.toString());
|
||||
error = P.p.txt.parse(TL.CLAIM_MUSTBE.toString(), Role.MODERATOR.toString());
|
||||
} else if (forFaction.getFPlayers().size() < Conf.claimsRequireMinFactionMembers) {
|
||||
error = P.p.txt.parse("Factions must have at least <h>%s<b> members to claim land.", Conf.claimsRequireMinFactionMembers);
|
||||
error = P.p.txt.parse(TL.CLAIM_MEMBERS.toString(), Conf.claimsRequireMinFactionMembers);
|
||||
} else if (currentFaction.isSafeZone()) {
|
||||
error = P.p.txt.parse("<b>You can not claim a Safe Zone.");
|
||||
error = P.p.txt.parse(TL.CLAIM_SAFEZONE.toString());
|
||||
} else if (currentFaction.isWarZone()) {
|
||||
error = P.p.txt.parse("<b>You can not claim a War Zone.");
|
||||
error = P.p.txt.parse(TL.CLAIM_WARZONE.toString());
|
||||
} else if (ownedLand >= forFaction.getPowerRounded()) {
|
||||
error = P.p.txt.parse("<b>You can't claim more land! You need more power!");
|
||||
error = P.p.txt.parse(TL.CLAIM_POWER.toString());
|
||||
} else if (Conf.claimedLandsMax != 0 && ownedLand >= Conf.claimedLandsMax && forFaction.isNormal()) {
|
||||
error = P.p.txt.parse("<b>Limit reached. You can't claim more land!");
|
||||
error = P.p.txt.parse(TL.CLAIM_LIMIT.toString());
|
||||
} else if (currentFaction.getRelationTo(forFaction) == Relation.ALLY) {
|
||||
error = P.p.txt.parse("<b>You can't claim the land of your allies.");
|
||||
error = P.p.txt.parse(TL.CLAIM_ALLY.toString());
|
||||
} else if (Conf.claimsMustBeConnected && !this.isAdminBypassing() && myFaction.getLandRoundedInWorld(flocation.getWorldName()) > 0 && !Board.getInstance().isConnectedLocation(flocation, myFaction) && (!Conf.claimsCanBeUnconnectedIfOwnedByOtherFaction || !currentFaction.isNormal())) {
|
||||
if (Conf.claimsCanBeUnconnectedIfOwnedByOtherFaction) {
|
||||
error = P.p.txt.parse("<b>You can only claim additional land which is connected to your first claim or controlled by another faction!");
|
||||
error = P.p.txt.parse(TL.CLAIM_CONTIGIOUS.toString());
|
||||
} else {
|
||||
error = P.p.txt.parse("<b>You can only claim additional land which is connected to your first claim!");
|
||||
error = P.p.txt.parse(TL.CLAIM_FACTIONCONTIGUOUS.toString());
|
||||
}
|
||||
} else if (currentFaction.isNormal()) {
|
||||
if (myFaction.isPeaceful()) {
|
||||
error = P.p.txt.parse("%s<i> owns this land. Your faction is peaceful, so you cannot claim land from other factions.", currentFaction.getTag(this));
|
||||
error = P.p.txt.parse(TL.CLAIM_PEACEFUL.toString(), currentFaction.getTag(this));
|
||||
} else if (currentFaction.isPeaceful()) {
|
||||
error = P.p.txt.parse("%s<i> owns this land, and is a peaceful faction. You cannot claim land from them.", currentFaction.getTag(this));
|
||||
error = P.p.txt.parse(TL.CLAIM_PEACEFULTARGET.toString(), currentFaction.getTag(this));
|
||||
} else if (!currentFaction.hasLandInflation()) {
|
||||
// TODO more messages WARN current faction most importantly
|
||||
error = P.p.txt.parse("%s<i> owns this land and is strong enough to keep it.", currentFaction.getTag(this));
|
||||
error = P.p.txt.parse(TL.CLAIM_THISISSPARTA.toString(), currentFaction.getTag(this));
|
||||
} else if (!Board.getInstance().isBorderLocation(flocation)) {
|
||||
error = P.p.txt.parse("<b>You must start claiming land at the border of the territory.");
|
||||
error = P.p.txt.parse(TL.CLAIM_BORDER.toString());
|
||||
}
|
||||
}
|
||||
// TODO: Add more else if statements.
|
||||
@@ -739,7 +739,7 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
payee = this;
|
||||
}
|
||||
|
||||
if (!Econ.hasAtLeast(payee, cost, "to claim this land")) {
|
||||
if (!Econ.hasAtLeast(payee, cost, TL.CLAIM_TOCLAIM.toString())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -751,7 +751,7 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
}
|
||||
|
||||
// then make 'em pay (if applicable)
|
||||
if (mustPay && !Econ.modifyMoney(payee, -cost, "to claim this land", "for claiming this land")) {
|
||||
if (mustPay && !Econ.modifyMoney(payee, -cost, TL.CLAIM_TOCLAIM.toString(), TL.CLAIM_FORCLAIM.toString())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -760,13 +760,13 @@ public abstract class MemoryFPlayer implements FPlayer {
|
||||
informTheseFPlayers.add(this);
|
||||
informTheseFPlayers.addAll(forFaction.getFPlayersWhereOnline(true));
|
||||
for (FPlayer fp : informTheseFPlayers) {
|
||||
fp.msg("<h>%s<i> claimed land for <h>%s<i> from <h>%s<i>.", this.describeTo(fp, true), forFaction.describeTo(fp), currentFaction.describeTo(fp));
|
||||
fp.msg(TL.CLAIM_CLAIMED, this.describeTo(fp, true), forFaction.describeTo(fp), currentFaction.describeTo(fp));
|
||||
}
|
||||
|
||||
Board.getInstance().setFactionAt(forFaction, flocation);
|
||||
|
||||
if (Conf.logLandClaims) {
|
||||
P.p.log(this.getName() + " claimed land at (" + flocation.getCoordString() + ") for the faction: " + forFaction.getTag());
|
||||
P.p.log(TL.CLAIM_CLAIMEDLOG.toString(),this.getName(),flocation.getCoordString(),forFaction.getTag());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.massivecraft.factions.zcore.util;
|
||||
|
||||
import com.massivecraft.factions.zcore.Lang;
|
||||
import com.massivecraft.factions.zcore.MPlugin;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -23,7 +22,7 @@ public class PermUtil {
|
||||
}
|
||||
|
||||
public String getForbiddenMessage(String perm) {
|
||||
return p.txt.parse(Lang.permForbidden, getPermissionDescription(perm));
|
||||
return p.txt.parse(TL.GENERIC_NOPERMISSION.toString(), getPermissionDescription(perm));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,7 +38,7 @@ public class PermUtil {
|
||||
public String getPermissionDescription(String perm) {
|
||||
String desc = permissionDescriptions.get(perm);
|
||||
if (desc == null) {
|
||||
return Lang.permDoThat;
|
||||
return TL.GENERIC_DOTHAT.toString();
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
@@ -419,19 +419,135 @@ public enum TL {
|
||||
COMMAND_RELATIONS_PROPOSAL_2("<i>Type <c>/%1$s %2$s %3$s<i> to accept."),
|
||||
COMMAND_RELATIONS_PROPOSAL_SENT("%1$s<i> were informed that you wish to be %2$s"),
|
||||
/**
|
||||
* More generic translations, which will apply to more than one class.
|
||||
* Leaving
|
||||
*/
|
||||
LEAVE_PASSADMIN("<b>You must give the admin role to someone else first."),
|
||||
LEAVE_NEGATIVEPOWER("<b>You cannot leave until your power is positive."),
|
||||
LEAVE_TOLEAVE("to leave your faction."),
|
||||
LEAVE_FORLEAVE("for leaving your faction."),
|
||||
LEAVE_LEFT("%s<i> left faction %s<i>."),
|
||||
LEAVE_DISBANDED("<i>%s<i> was disbanded."),
|
||||
LEAVE_DISBANDEDLOG("The faction %s (%s) was disbanded due to the last player (%s) leaving."),
|
||||
/**
|
||||
* Claiming
|
||||
*/
|
||||
CLAIM_PROTECTED("<b>This land is protected"),
|
||||
CLAIM_DISABLED("<b>Sorry, this world has land claiming disabled."),
|
||||
CLAIM_CANTCLAIM("<b>You can't claim land for <h>%s<b>."),
|
||||
CLAIM_ALREADYOWN("%s<i> already own this land."),
|
||||
CLAIM_MUSTBE("<b>You must be <h>%s<b> to claim land."),
|
||||
CLAIM_MEMBERS("Factions must have at least <h>%s<b> members to claim land."),
|
||||
CLAIM_SAFEZONE("<b>You can not claim a Safe Zone."),
|
||||
CLAIM_WARZONE("<b>You can not claim a War Zone."),
|
||||
CLAIM_POWER("<b>You can't claim more land! You need more power!"),
|
||||
CLAIM_LIMIT("<b>Limit reached. You can't claim more land!"),
|
||||
CLAIM_ALLY("<b>You can't claim the land of your allies."),
|
||||
CLAIM_CONTIGIOUS("<b>You can only claim additional land which is connected to your first claim or controlled by another faction!"),
|
||||
CLAIM_FACTIONCONTIGUOUS("<b>You can only claim additional land which is connected to your first claim!"),
|
||||
CLAIM_PEACEFUL("%s<i> owns this land. Your faction is peaceful, so you cannot claim land from other factions."),
|
||||
CLAIM_PEACEFULTARGET("%s<i> owns this land, and is a peaceful faction. You cannot claim land from them."),
|
||||
CLAIM_THISISSPARTA("%s<i> owns this land and is strong enough to keep it."),
|
||||
CLAIM_BORDER("<b>You must start claiming land at the border of the territory."),
|
||||
CLAIM_TOCLAIM("to claim this land"),
|
||||
CLAIM_FORCLAIM("for claiming this land"),
|
||||
CLAIM_CLAIMED("<h>%s<i> claimed land for <h>%s<i> from <h>%s<i>."),
|
||||
CLAIM_CLAIMEDLOG("%s claimed land at (%s) for the faction: %s"),
|
||||
/**
|
||||
* Command descriptions
|
||||
*/
|
||||
FACTIONS_ADMIN("hand over your admin rights"),
|
||||
FACTIONS_AUTOCLAIM("auto-claim land as you walk around"),
|
||||
FACTIONS_BYPASS("enable admin bypass mode"),
|
||||
FACTIONS_CHAT("change chat mode"),
|
||||
FACTIONS_CHATSPY("enable admin chat spy mode"),
|
||||
FACTIONS_CLAIM("claim land where you are standing"),
|
||||
FACTIONS_CONFIG("change a conf.json setting"),
|
||||
FACTIONS_CREATE("create a new faction"),
|
||||
FACTIONS_DEINVITE("remove a pending invitation"),
|
||||
FACTIONS_DISBAND("disband a faction"),
|
||||
FACTIONS_HELP("display a help page"),
|
||||
FACTIONS_HOME("teleport to the faction home"),
|
||||
FACTIONS_INVITE("invite a player to your faction"),
|
||||
FACTIONS_JOIN("join a faction"),
|
||||
FACTIONS_KICK("kick a player from the faction"),
|
||||
FACTIONS_LEAVE("leave your faction"),
|
||||
FACTIONS_LIST("see a list of the factions"),
|
||||
FACTIONS_LOCK("lock all write stuff"),
|
||||
FACTIONS_MANAGESAFEZONE("claim land as a safe zone and build/destroy within safe zones"),
|
||||
FACTIONS_MANAGEWARZONE("claim land as a war zone and build/destroy within war zones"),
|
||||
FACTIONS_MAP("show the territory map, and set optional auto update"),
|
||||
FACTIONS_MOD("give or revoke moderator rights"),
|
||||
FACTIONS_MONEY_BALANCE ("show your factions current money balance"),
|
||||
FACTIONS_MONEY_DEPOSIT ("deposit money into a faction bank"),
|
||||
FACTIONS_MONEY_WITHDRAW ("withdraw money from your faction bank"),
|
||||
FACTIONS_MONEY_F2F ("transfer money from faction to faction"),
|
||||
FACTIONS_MONEY_F2P ("transfer money from faction to player"),
|
||||
FACTIONS_MONEY_P2F ("transfer money from player to faction"),
|
||||
FACTIONS_NOBOOM ("toggle explosions (peaceful factions only),"),
|
||||
FACTIONS_OPEN ("switch if invitation is required to join"),
|
||||
FACTIONS_OWNER ("set ownership of claimed land"),
|
||||
FACTIONS_OWNERLIST ("list owner(s), of this claimed land"),
|
||||
FACTIONS_SETPEACEFUL("designate a faction as peaceful"),
|
||||
FACTIONS_SETPERMANENT("designate a faction as permanent"),
|
||||
FACTIONS_SETPERMANENTPOWER("set permanent power for a faction"),
|
||||
FACTIONS_POWER("show player power info"),
|
||||
FACTIONS_POWERBOOST("apply permanent power bonus/penalty to specified player or faction"),
|
||||
FACTIONS_RELATION("set relation wish to another faction"),
|
||||
FACTIONS_RELOAD("reload data file(s), from disk"),
|
||||
FACTIONS_SAVE("save all data to disk"),
|
||||
FACTIONS_SETHOME("set the faction home"),
|
||||
FACTIONS_SHOW("show faction information"),
|
||||
FACTIONS_TAG("change the faction tag"),
|
||||
FACTIONS_TITLE("set or remove a players title"),
|
||||
FACTIONS_VERSION("see the version of the plugin"),
|
||||
FACTIONS_UNCLAIM("unclaim the land where you are standing"),
|
||||
FACTIONS_UNCLAIMALL("unclaim all of your factions land"),
|
||||
FACTIONS_SCOREBOARD("ability to toggle scoreboards"),
|
||||
FACTIONS_SHOWINVITES("show pending invites to your faction"),
|
||||
FACTIONS_SEECHUNK("see the chunk you stand in"),
|
||||
FACTIONS_SETWARP("set a warp for your faction"),
|
||||
FACTIONS_WARP("access your faction warps"),
|
||||
FACTIONS_MODIFYPOWER("modify other player's power"),
|
||||
FACTIONS_MONITORLOGINS("monitor join and leaves of faction members"),
|
||||
/**
|
||||
* More generic, or less easily categorisable translations, which may apply to more than one class
|
||||
*/
|
||||
GENERIC_NOPERMISSION("<b>You don't have permission to %1$s."),
|
||||
GENERIC_DOTHAT("do that"), //Ugh nuke this from high orbit
|
||||
GENERIC_NOPLAYERMATCH("<b>No player match found for \"<p>%1$s<b>\"."),
|
||||
GENERIC_NOPLAYERFOUND("<b>No player \"<p>%1$s<b>\" could not be found."),
|
||||
GENERIC_ARGS_TOOFEW("<b>Too few arguments. <i>Use like this:"),
|
||||
GENERIC_ARGS_TOOMANY("<b>Strange argument \"<p>%1$s<b>\". <i>Use the command like this:"),
|
||||
GENERIC_OWNERS("Owner(s): %1$s"),
|
||||
GENERIC_PUBLICLAND("Public faction land."),
|
||||
GENERIC_FACTIONLESS("factionless"),
|
||||
GENERIC_SERVERADMIN("A server admin"),
|
||||
GENERIC_DISABLED("disabled"),
|
||||
GENERIC_ENABLED("enabled"),
|
||||
GENERIC_CONSOLEONLY("This command cannot be run as a player."),
|
||||
GENERIC_PLAYERONLY("<b>This command can only be used by ingame players."),
|
||||
GENERIC_ASKYOURLEADER("<i> Ask your leader to:"),
|
||||
GENERIC_YOUSHOULD("<i>You should:"),
|
||||
GENERIC_YOUMAYWANT("<i>You may want to: "),
|
||||
GENERIC_TRANSLATION_VERSION("Translation: %1$s(%2$s,%3$s) State: %4$s"),
|
||||
GENERIC_TRANSLATION_CONTRIBUTORS("Translation contributors: %1$s"),
|
||||
GENERIC_TRANSLATION_RESPONSIBLE("Responsible for translation: %1$s"),
|
||||
|
||||
GENERIC_FACTIONTAG_TOOSHORT("<i>The faction tag can't be shorter than <h>%1$s<i> chars."),
|
||||
GENERIC_FACTIONTAG_TOOLONG("<i>The faction tag can't be longer than <h>%s<i> chars."),
|
||||
GENERIC_FACTIONTAG_ALPHANUMERIC("<i>Faction tag must be alphanumeric. \"<h>%s<i>\" is not allowed."),
|
||||
/**
|
||||
* ASCII compass (for chat map)
|
||||
*/
|
||||
COMPASS_SHORT_NORTH("N"),
|
||||
COMPASS_SHORT_EAST("E"),
|
||||
COMPASS_SHORT_SOUTH("S"),
|
||||
COMPASS_SHORT_WEST("W"),
|
||||
/**
|
||||
* Chat modes
|
||||
*/
|
||||
CHAT_FACTION("faction chat"),
|
||||
CHAT_ALLIANCE("alliance chat"),
|
||||
CHAT_PUBLIC("public chat"),
|
||||
/**
|
||||
* Relations
|
||||
*/
|
||||
@@ -461,7 +577,7 @@ public enum TL {
|
||||
/**
|
||||
* Warmups
|
||||
*/
|
||||
WARMUPS_NOTIFY_TELEPORT("&eYou will teleport to &d%1$s &ein &d%2$d &eseconds."),
|
||||
WARMUPS_NOTIFY_TELEPORT("&eYou will teleport to &d%1$s &ein &d%2$d &eseconds.")
|
||||
;
|
||||
|
||||
private String path;
|
||||
|
||||
Reference in New Issue
Block a user