mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-09 22:13:12 +00:00
cleanup
This commit is contained in:
parent
dea6e84407
commit
0d382ac9c3
215 changed files with 4930 additions and 6474 deletions
|
@ -18,7 +18,6 @@
|
|||
// /
|
||||
// You can contact us via: support@intellectualsites.com /
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
package com.intellectualcrafters.plot.config;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
|
@ -201,7 +200,6 @@ public enum C {
|
|||
CANT_CLAIM_MORE_PLOTS("$2You can't claim more plots."),
|
||||
CANT_CLAIM_MORE_PLOTS_NUM("$2You can't claim more than $1%s $2plots at once"),
|
||||
YOU_BE_DENIED("$2You are not allowed to enter this plot"),
|
||||
|
||||
NO_PERM_MERGE("$2You are not the owner of the plot: $1%plot%"),
|
||||
UNLINK_REQUIRED("$2An unlink is required to do this."),
|
||||
UNLINK_IMPOSSIBLE("$2You can only unlink a mega-plot"),
|
||||
|
@ -329,7 +327,6 @@ public enum C {
|
|||
PLOT_INFO_ID("$1ID:$2 %id%"),
|
||||
PLOT_INFO_ALIAS("$1Alias:$2 %alias%"),
|
||||
PLOT_INFO_SIZE("$1Size:$2 %size%"),
|
||||
|
||||
PLOT_USER_LIST(" $1%user%$2,"),
|
||||
INFO_SYNTAX_CONSOLE("$2/plot info <world> X;Y"),
|
||||
/*
|
||||
|
@ -389,7 +386,6 @@ public enum C {
|
|||
FLAG_KEY("$2Key: %s"),
|
||||
FLAG_TYPE("$2Type: %s"),
|
||||
FLAG_DESC("$2Desc: %s"),
|
||||
|
||||
NEED_KEY("$2Possible values: $1%values%"),
|
||||
NOT_VALID_FLAG("$2That is not a valid flag"),
|
||||
NOT_VALID_VALUE("$2Flag values must be alphanumerical"),
|
||||
|
@ -442,7 +438,6 @@ public enum C {
|
|||
* Custom
|
||||
*/
|
||||
CUSTOM_STRING("-");
|
||||
|
||||
/**
|
||||
* Special Language
|
||||
*
|
||||
|
@ -474,8 +469,7 @@ public enum C {
|
|||
* Should the string be prefixed?
|
||||
*/
|
||||
private boolean prefix;
|
||||
private ChatColor[] sColors = null;
|
||||
|
||||
|
||||
/**
|
||||
* Constructor for custom strings.
|
||||
*/
|
||||
|
@ -484,7 +478,7 @@ public enum C {
|
|||
* use setCustomString();
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
@ -498,7 +492,7 @@ public enum C {
|
|||
}
|
||||
this.prefix = prefix;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
|
@ -507,7 +501,7 @@ public enum C {
|
|||
C(final String d) {
|
||||
this(d, true);
|
||||
}
|
||||
|
||||
|
||||
public static void setupTranslations() {
|
||||
manager = new TranslationManager();
|
||||
defaultFile = new YamlTranslationFile(BukkitTranslation.getParent(), lang, "PlotSquared", manager).read();
|
||||
|
@ -516,15 +510,15 @@ public enum C {
|
|||
manager.addTranslationObject(new TranslationObject(c.toString(), c.d, "", ""));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void saveTranslations() {
|
||||
try {
|
||||
manager.saveAll(defaultFile).saveFile(defaultFile);
|
||||
} catch (Exception e) {
|
||||
} catch (final Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the default string
|
||||
*
|
||||
|
@ -533,14 +527,14 @@ public enum C {
|
|||
public String d() {
|
||||
return this.d;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get translated if exists
|
||||
*
|
||||
* @return translated if exists else default
|
||||
*/
|
||||
public String s() {
|
||||
String s = manager.getTranslated(toString(), lang).getTranslated().replaceAll("&-", "\n").replaceAll("\\n", "\n");
|
||||
final String s = manager.getTranslated(toString(), lang).getTranslated().replaceAll("&-", "\n").replaceAll("\\n", "\n");
|
||||
return s.replace("$1", COLOR_1.toString()).replace("$2", COLOR_2.toString()).replace("$3", COLOR_3.toString()).replace("$4", COLOR_4.toString());
|
||||
/*
|
||||
* if (PlotSquared.translations != null) {
|
||||
|
@ -555,11 +549,11 @@ public enum C {
|
|||
* return this.s.replace("\\n", "\n");
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
public boolean usePrefix() {
|
||||
return this.prefix;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return translated and color decoded
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue