2014-11-08 20:27:09 +01:00
////////////////////////////////////////////////////////////////////////////////////////////////////
// PlotSquared - A plot manager and world generator for the Bukkit API /
// Copyright (c) 2014 IntellectualSites/IntellectualCrafters /
// /
// This program is free software; you can redistribute it and/or modify /
// it under the terms of the GNU General Public License as published by /
// the Free Software Foundation; either version 3 of the License, or /
// (at your option) any later version. /
// /
// This program is distributed in the hope that it will be useful, /
// but WITHOUT ANY WARRANTY; without even the implied warranty of /
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the /
// GNU General Public License for more details. /
// /
// You should have received a copy of the GNU General Public License /
// along with this program; if not, write to the Free Software Foundation, /
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA /
// /
// You can contact us via: support@intellectualsites.com /
////////////////////////////////////////////////////////////////////////////////////////////////////
2014-09-22 13:02:14 +02:00
2014-11-16 10:48:18 +01:00
package com.intellectualcrafters.plot.config ;
2014-09-22 13:02:14 +02:00
2015-01-14 03:38:15 +11:00
import org.bukkit.ChatColor ;
2014-11-16 10:48:18 +01:00
import com.intellectualcrafters.plot.PlotMain ;
2015-01-14 03:38:15 +11:00
import com.intellectualsites.translation.TranslationFile ;
import com.intellectualsites.translation.TranslationLanguage ;
import com.intellectualsites.translation.TranslationManager ;
import com.intellectualsites.translation.TranslationObject ;
import com.intellectualsites.translation.YamlTranslationFile ;
2014-11-08 22:47:45 +01:00
import com.intellectualsites.translation.bukkit.BukkitTranslation ;
2014-09-22 13:02:14 +02:00
/ * *
* Captions class .
2014-10-11 00:33:10 -07:00
*
2014-09-22 13:02:14 +02:00
* @author Citymonstret
* /
public enum C {
2015-02-01 16:32:04 +11:00
/ *
* Compass
* /
COMPASS_TARGET ( " &6Successfully targeted plot with compass " ) ,
2015-01-29 14:20:29 +11:00
/ *
* Cluster
* /
2015-01-29 17:02:13 +11:00
CLUSTER_AVAILABLE_ARGS ( " &6The following sub commands are available: &clist, create, delete, resize, invite, kick, leave, helpers, info, tp, sethome " ) ,
2015-01-29 14:20:29 +11:00
CLUSTER_LIST_HEADING ( " &cThere are %s clusters in this world " ) ,
CLUSTER_LIST_ELEMENT ( " &7 - &6%s \ n " ) ,
CLUSTER_INTERSECTION ( " &6The proposed area overlaps with %s existing cluster/s " ) ,
CLUSTER_ADDED ( " &6Successfully created the cluster. " ) ,
CLUSTER_DELETED ( " &6Successfully deleted the cluster. " ) ,
CLUSTER_RESIZED ( " &6Successfully resized the cluster. " ) ,
CLUSTER_ADDED_USER ( " &6Successfully added user to the cluster. " ) ,
2015-01-29 17:02:13 +11:00
CANNOT_KICK_PLAYER ( " &cYou cannot kick that player " ) ,
2015-01-29 14:20:29 +11:00
CLUSTER_INVITED ( " &6You have been invited to the following cluster: %s. " ) ,
2015-01-29 17:02:13 +11:00
CLUSTER_REMOVED ( " &cYou have been removed from cluster %s " ) ,
CLUSTER_KICKED_USER ( " &6Successfully kicked the user " ) ,
INVALID_CLUSTER ( " &cInvalid cluster name: %s " ) ,
CLUSTER_NOT_ADDED ( " &cThat player was not added to the plot cluster " ) ,
CLUSTER_CANNOT_LEAVE ( " &cYou must delete or transfer ownership before leaving " ) ,
CLUSTER_ADDED_HELPER ( " &6Successfully added a helper to the cluster " ) ,
CLUSTER_REMOVED_HELPER ( " &6Successfully removed a helper to the cluster " ) ,
2015-01-31 18:09:48 +11:00
CLUSTER_REGENERATED ( " &6Successfully started cluster regeneration " ) ,
2015-01-29 17:02:13 +11:00
CLUSTER_TELEPORTING ( " &6Teleporting... " ) ,
2015-01-29 18:45:14 +11:00
CLUSTER_INFO ( " &6Current cluster: &7%id% \ n&6Name: &7%name% \ n&6Owner: &7%owner% \ n&6Size: &7%size% \ n&6Rights: &7%rights% " ) ,
2015-01-31 19:22:53 +11:00
CLUSTER_CURRENT_PLOTID ( " &6Current plot: &7%s " ) ,
2015-01-15 00:47:03 +11:00
/ *
* Border
* /
BORDER ( " &cYou are outside the current map border " ) ,
2014-12-18 19:23:41 +11:00
/ *
* Unclaim
* /
UNCLAIM_SUCCESS ( " &cYou successfully unclaimed the plot. " ) ,
2014-12-04 15:00:08 +11:00
/ *
* WorldEdit masks
* /
REQUIRE_SELECTION_IN_MASK ( " &c%s of your selection is not within your plot mask. You can only make edits within your plot. " ) ,
2014-10-30 16:16:26 +01:00
/ *
* Records
* /
RECORD_PLAY ( " &c%player &cstarted playing record &6%name " ) ,
NOTIFY_ENTER ( " &c%player ¢ered your plot (&6%plot&c) " ) ,
NOTIFY_LEAVE ( " &c%player &left your plot (&6%plot&c) " ) ,
2014-10-23 21:21:27 +11:00
/ *
* Swap
* /
SWAP_SYNTAX ( " &c/plots swap <plot id> " ) ,
SWAP_SUCCESS ( " &6Successfully swapped plots " ) ,
2014-10-22 16:21:57 +11:00
/ *
* Comment
* /
2014-10-23 21:21:27 +11:00
COMMENT_SYNTAX ( " &cUse /plots comment <everyone|trusted|helper|owner|admin> <comment> " ) ,
2014-11-02 14:45:52 +11:00
INVALID_INBOX ( " &cThat is not a valid inbox. \ n&6Accepted values: %s " ) ,
COMMENT_REMOVED ( " &aSuccessfully deleted %s. " ) ,
2015-01-12 02:31:09 +11:00
COMMENT_ADDED ( " &aA comment has been left " ) ,
2014-10-23 21:21:27 +11:00
/ *
* Console
* /
NOT_CONSOLE ( " &cFor safety reasons, this command can only be executed by console. " ) ,
IS_CONSOLE ( " &cThis command can only be executed by a player. " ) ,
2014-10-12 17:26:58 +02:00
/ *
2014-11-05 14:42:08 +11:00
* Clipboard
2014-10-12 17:26:58 +02:00
* /
2014-10-13 19:59:35 +02:00
CLIPBOARD_SET ( " &cThe current plot is now copied to your clipboard, use &6/plot paste&c to paste it " ) ,
PASTED ( " &cThe plot selection was successfully pasted. It has been cleared from your clipboard. " ) ,
2014-10-12 17:26:58 +02:00
PASTE_FAILED ( " &cFailed to paste the selection. Reason: &c%s " ) ,
NO_CLIPBOARD ( " &cYou don't have a selection in your clipboard " ) ,
2014-10-13 19:43:41 +02:00
CLIPBOARD_INFO ( " &cCurrent Selection - Plot ID: &6%id&c, Width: &6%width&c, Total Blocks: &6%total&c " ) ,
2014-10-23 21:21:27 +11:00
/ *
* Ratings
* /
RATING_NOT_VALID ( " &cYou need to specify a number between 1 and 10 " ) ,
RATING_ALREADY_EXISTS ( " &cYou have already rated plot &c%s " ) ,
RATING_APPLIED ( " &cYou successfully rated plot &6%s " ) ,
RATING_NOT_YOUR_OWN ( " &cYou cannot rate your own plot " ) ,
RATING_NOT_OWNED ( " &cYou cannot rate a plot that is not claimed by anyone " ) ,
/ *
* Economy Stuff
* /
2015-01-10 21:20:20 +11:00
ECON_DISABLED ( " &cEconomy is not enabled " ) ,
2014-10-23 21:21:27 +11:00
CANNOT_AFFORD_PLOT ( " &cYou cannot afford to buy this plot. It costs &6%s " ) ,
2015-01-10 21:20:20 +11:00
NOT_FOR_SALE ( " &cThis plot is not for sale " ) ,
2015-01-12 02:31:09 +11:00
CANNOT_BUY_OWN ( " &cYou cannot buy your own plot " ) ,
2015-01-10 21:37:46 +11:00
PLOT_SOLD ( " &aYour plot; &6%s&a, has been sold to &6%s&a for &6$%s " ) ,
2014-10-23 21:21:27 +11:00
CANNOT_AFFORD_MERGE ( " &cYou cannot afford to merge the plots. It costs &6%s " ) ,
ADDED_BALANCE ( " &6%s &chas been added to your balance " ) ,
REMOVED_BALANCE ( " &6%s &chas been taken from your balance " ) ,
/ *
* Setup Stuff
* /
2015-02-08 10:44:53 +11:00
SETUP_INIT ( " &6Usage: &7/plot setup <value> " ) ,
SETUP_STEP ( " &7[&6Step %s&7] &6%s &cExpecting: &6%s&c, Default: &6%s&c> " ) ,
2014-10-23 21:21:27 +11:00
SETUP_INVALID_ARG ( " &c%s is not a valid argument for step %s. To cancel setup use: &6/plot setup cancel " ) ,
SETUP_VALID_ARG ( " &cValue &6%s &cset for step %s " ) ,
2015-02-08 10:44:53 +11:00
SETUP_FINISHED ( " &6Finished setup for world &c%s. \ n&4If you are using MULTIVERSE or MULTIWORLD the world should have just been created. Otherwise you will need to add the world manually through the bukkit.yml " ) ,
2014-10-23 21:21:27 +11:00
SETUP_WORLD_TAKEN ( " &c%s is already a registered plotworld " ) ,
2014-12-20 15:46:22 +11:00
SETUP_MISSING_WORLD ( " &cYou need to specify a world name (&6/plot setup &l<world>&6 <generator>&c) \ n&6Additional commands: \ n&c - &6/plot setup <value> \ n&c - &6/plot setup back \ n&c - &6/plot setup cancel " ) ,
SETUP_MISSING_GENERATOR ( " &cYou need to specify a generator (&6/plot setup <world> &l<generator>&r&c) \ n&6Additional commands: \ n&c - &6/plot setup <value> \ n&c - &6/plot setup back \ n&c - &6/plot setup cancel " ) ,
2014-10-23 21:21:27 +11:00
SETUP_INVALID_GENERATOR ( " &cInvalid generator. Possible options: %s " ) ,
/ *
* Schematic Stuff
* /
2014-10-25 16:34:06 +11:00
SCHEMATIC_MISSING_ARG ( " &cYou need to specify an argument. Possible values: &6test <name>&7 , &6save&7 , &6paste &7, &6exportall " ) ,
2014-10-23 21:21:27 +11:00
SCHEMATIC_INVALID ( " &cThat is not a valid schematic. Reason: &c%s " ) ,
SCHEMATIC_VALID ( " &cThat is a valid schematic " ) ,
SCHEMATIC_PASTE_FAILED ( " &cFailed to paste the schematic " ) ,
SCHEMATIC_PASTE_SUCCESS ( " &cThe schematic pasted successfully " ) ,
/ *
* Title Stuff
* /
2015-01-07 03:08:29 +11:00
TITLE_ENTERED_PLOT ( " You entered plot %world%;%x%;%z% " ) ,
2014-10-23 21:21:27 +11:00
TITLE_ENTERED_PLOT_COLOR ( " GOLD " ) ,
TITLE_ENTERED_PLOT_SUB ( " Owned by %s " ) ,
TITLE_ENTERED_PLOT_SUB_COLOR ( " RED " ) ,
TITLE_LEFT_PLOT ( " You entered plot %s " ) ,
TITLE_LEFT_PLOT_COLOR ( " GOLD " ) ,
TITLE_LEFT_PLOT_SUB ( " Owned by %s " ) ,
TITLE_LEFT_PLOT_SUB_COLOR ( " RED " ) ,
/ *
* Core Stuff
* /
2015-02-10 16:29:23 +11:00
PREFIX ( " &c[&6Plot&c] " ) ,
2014-10-23 21:21:27 +11:00
ENABLED ( " &6PlotSquared is now enabled " ) ,
EXAMPLE_MESSAGE ( " &cThis is an example message &k!!! " ) ,
/ *
* Reload
* /
2015-01-22 16:44:20 -08:00
RELOADED_CONFIGS ( " &6Translations and world settings have been reloaded " ) ,
RELOAD_FAILED ( " &cFailed to reload file configurations " ) ,
2014-10-23 21:21:27 +11:00
/ *
* BarAPI
* /
BOSSBAR_CLEARING ( " &cClearing plot: &6%id% " ) ,
/ *
* Alias
* /
ALIAS_SET_TO ( " &cPlot alias set to &6%alias% " ) ,
MISSING_ALIAS ( " &cYou need to specify an alias " ) ,
2015-01-04 15:43:36 +11:00
ALIAS_TOO_LONG ( " &cThe alias must be < 50 characters in length " ) ,
2014-10-23 21:21:27 +11:00
ALIAS_IS_TAKEN ( " &cThat alias is already taken " ) ,
/ *
* Position
* /
2015-01-13 02:52:33 +11:00
MISSING_POSITION ( " &cYou need to specify a position. Possible values: &6none " ) ,
2015-01-30 10:15:31 +11:00
POSITION_SET ( " &6Home position set to your current location " ) ,
2015-01-13 02:52:33 +11:00
HOME_ARGUMENT ( " &cUse /plot set home [none] " ) ,
2014-10-23 21:21:27 +11:00
INVALID_POSITION ( " &cThat is not a valid position value " ) ,
/ *
* Time
* /
TIME_FORMAT ( " &6%hours%, %min%, %sec% " ) ,
/ *
* Permission
* /
NO_SCHEMATIC_PERMISSION ( " &cYou don't have the permission required to use schematic &6%s " ) ,
NO_PERMISSION ( " &cYou are lacking the permission node: &6%s " ) ,
2015-01-02 00:28:57 +11:00
NO_PLOT_PERMS ( " &cYou must be the plot owner to perform this action " ) ,
2014-10-23 21:21:27 +11:00
CANT_CLAIM_MORE_PLOTS ( " &cYou can't claim more plots. " ) ,
2014-12-15 12:04:13 +11:00
CANT_CLAIM_MORE_PLOTS_NUM ( " &cYou can't claim more than &6%s &cplots at once " ) ,
2014-10-23 21:21:27 +11:00
YOU_BE_DENIED ( " &cYou are not allowed to enter this plot " ) ,
2014-09-30 21:17:55 +10:00
2014-10-23 21:21:27 +11:00
NO_PERM_MERGE ( " &cYou are not the owner of the plot: &6%plot% " ) ,
UNLINK_REQUIRED ( " &cAn unlink is required to do this. " ) ,
UNLINK_IMPOSSIBLE ( " &cYou can only unlink a mega-plot " ) ,
NO_MERGE_TO_MEGA ( " &cMega plots cannot be merged into. Please merge from the desired mega plot. " ) ,
/ *
* Commands
* /
2014-11-01 16:13:44 +01:00
NOT_VALID_SUBCOMMAND ( " &cThat is not a valid subcommand " ) ,
DID_YOU_MEAN ( " &cDid you mean: &6%s " ) ,
2014-11-01 16:22:22 +01:00
NAME_LITTLE ( " &c%s name is too short, &6%s&c<&6%s " ) ,
2014-10-23 21:21:27 +11:00
NO_COMMANDS ( " &cI'm sorry, but you're not permitted to use any subcommands. " ) ,
SUBCOMMAND_SET_OPTIONS_HEADER ( " &cPossible Values: " ) ,
2015-01-29 14:20:29 +11:00
COMMAND_SYNTAX ( " &6Usage: &c%s " ) ,
2014-10-23 21:21:27 +11:00
/ *
* Player not found
* /
2014-12-30 17:50:55 +11:00
INVALID_PLAYER ( " &cPlayer not found: &6%s. " ) ,
2014-10-23 21:21:27 +11:00
/ *
2014-11-05 14:42:08 +11:00
*
* /
2014-10-23 21:21:27 +11:00
COMMAND_WENT_WRONG ( " &cSomething went wrong when executing that command... " ) ,
/ *
* purge
* /
2015-01-08 00:29:20 +11:00
PURGE_SYNTAX ( " Use /plot purge <x;z|player|unowned|unknown|all> <world> " ) ,
2015-01-07 17:44:03 +11:00
PURGE_SUCCESS ( " Successfully purge %s plots " ) ,
2015-01-08 00:29:20 +11:00
/ *
* trim
* /
TRIM_SYNTAX ( " Use /plot trim <all|x;y> <world> " ) ,
2015-01-08 02:18:07 +11:00
TRIM_START ( " Starting a world trim task... " ) ,
TRIM_IN_PROGRESS ( " A world trim task is already in progress! " ) ,
2015-01-08 00:29:20 +11:00
NOT_VALID_HYBRID_PLOT_WORLD ( " The hybrid plot manager is required to perform this action " ) ,
2014-10-23 21:21:27 +11:00
/ *
* No < plot >
* /
2015-01-29 17:02:13 +11:00
NO_FREE_PLOTS ( " &cThere are no free plots available " ) ,
2014-10-23 21:21:27 +11:00
NOT_IN_PLOT ( " &cYou're not in a plot " ) ,
2015-01-29 17:02:13 +11:00
NOT_IN_CLUSTER ( " &cYou must be within a plot cluster to perform that action " ) ,
2014-10-23 21:21:27 +11:00
NOT_IN_PLOT_WORLD ( " &cYou're not in a plot world " ) ,
NOT_VALID_WORLD ( " &cThat is not a valid world (case sensitive) " ) ,
NOT_VALID_PLOT_WORLD ( " &cThat is not a valid plot world (case sensitive) " ) ,
NO_PLOTS ( " &cYou don't have any plots " ) ,
/ *
* Block List
* /
NOT_VALID_BLOCK_LIST_HEADER ( " &cThat's not a valid block. Valid blocks are: \\ n " ) ,
BLOCK_LIST_ITEM ( " &6%mat%&c, " ) ,
BLOCK_LIST_SEPARATER ( " &6,&c " ) ,
/ *
* Biome
* /
2014-10-27 16:09:26 +01:00
NEED_BIOME ( " &cYou have got to specify a biome " ) ,
2014-10-23 21:21:27 +11:00
BIOME_SET_TO ( " &cPlot biome set to &c " ) ,
/ *
* Teleport / Entry
* /
TELEPORTED_TO_PLOT ( " &6You have been teleported " ) ,
2014-11-20 19:29:05 +01:00
TELEPORTED_TO_ROAD ( " &cYou got teleported to the road " ) ,
2015-02-10 23:23:12 +11:00
TELEPORT_IN_SECONDS ( " &6Teleporting in %s seconds. Do not move... " ) ,
TELEPORT_FAILED ( " &cTeleportation cancelled due to movement " ) ,
2014-10-23 21:21:27 +11:00
/ *
* Set Block
* /
SET_BLOCK_ACTION_FINISHED ( " &6The last setblock action is now finished. " ) ,
/ *
* Debug
* /
DEUBG_HEADER ( " &6Debug Information \\ n " ) ,
DEBUG_SECTION ( " &c>> &6&l%val% " ) ,
DEBUG_LINE ( " &c>> &6%var%&c:&6 %val% \\ n " ) ,
/ *
* Invalid
* /
NOT_VALID_DATA ( " &cThat's not a valid data id. " ) ,
NOT_VALID_BLOCK ( " &cThat's not a valid block. " ) ,
NOT_VALID_NUMBER ( " &cThat's not a valid number " ) ,
NOT_VALID_PLOT_ID ( " &cThat's not a valid plot id. " ) ,
2015-01-29 14:20:29 +11:00
PLOT_ID_FORM ( " &cThe plot id must be in the form: &6X;Y &ce.g. &6-5;7 " ) ,
2014-10-23 21:21:27 +11:00
NOT_YOUR_PLOT ( " &cThat is not your plot. " ) ,
NO_SUCH_PLOT ( " &cThere is no such plot " ) ,
PLAYER_HAS_NOT_BEEN_ON ( " &cThat player hasn't been in the plotworld " ) ,
FOUND_NO_PLOTS ( " &cFound no plots with your search query " ) ,
/ *
* Camera
* /
CAMERA_STARTED ( " &cYou have entered camera mode for plot &6%s " ) ,
CAMERA_STOPPED ( " &cYou are no longer in camera mode " ) ,
/ *
* Need
* /
NEED_PLOT_NUMBER ( " &cYou've got to specify a plot number or alias " ) ,
NEED_BLOCK ( " &cYou've got to specify a block " ) ,
NEED_PLOT_ID ( " &cYou've got to specify a plot id. " ) ,
2014-12-28 23:55:02 +11:00
NEED_PLOT_WORLD ( " &cYou've got to specify a plot world. " ) ,
2014-10-23 21:21:27 +11:00
NEED_USER ( " &cYou need to specify a username " ) ,
/ *
* Info
* /
2015-01-02 00:22:59 +11:00
PLOT_UNOWNED ( " &cThe current plot must have an owner to perform this action " ) ,
2015-01-02 00:28:57 +11:00
PLOT_INFO_UNCLAIMED ( " &cPlot &6%s&c is not yet claimed " ) ,
2014-12-16 16:03:20 +11:00
/ *
* PLOT_INFO ( " " +
* " &6ID&7: &a%id%&7 \ n " +
* " &6Alias&7: &a%alias% \ n " +
* " &6Owner&7: &a%owner% \ n " +
* " &6Helpers&7: &a%helpers% \ n " +
* " &6Trusted&7: &a%trusted% \ n " +
* " &6Denied&7: &a%denied% \ n " +
* " &6Flags&7: &a%flags% \ n " +
* " &6Biome&7: &a%biome% \ n " +
* " &6Rating&7: &a%rating%&7/&a10 \ n " +
* " &6Can build&7: &a%build% "
* ) ,
* /
PLOT_INFO ( " &cID: &6%id%&c \ n " + " &cAlias: &6%alias%&c \ n " + " &cOwner: &6%owner%&c \ n " + " &cBiome: &6%biome%&c \ n " + " &cCan Build: &6%build%&c \ n " + " &cRating: &6%rating%&c/&610&c \ n " + " &cHelpers: &6%helpers%&c \ n " + " &cTrusted: &6%trusted%&c \ n " + " &cDenied: &6%denied%&c \ n " + " &cFlags: &6%flags% " ) ,
2014-10-24 16:50:48 +11:00
PLOT_INFO_HELPERS ( " &6Helpers&7: %helpers% " ) ,
PLOT_INFO_TRUSTED ( " &6Trusted&7: %trusted% " ) ,
2014-10-30 22:32:04 +11:00
PLOT_INFO_DENIED ( " &6Denied&7: %denied% " ) ,
2014-10-24 16:50:48 +11:00
PLOT_INFO_FLAGS ( " &6Flags&7: %flags% " ) ,
PLOT_INFO_BIOME ( " &6Biome&7: %biome% " ) ,
PLOT_INFO_RATING ( " &6Rating&7: %rating% " ) ,
PLOT_INFO_OWNER ( " &6Owner&7: %owner% " ) ,
PLOT_INFO_ID ( " &6ID&7: %id% " ) ,
PLOT_INFO_ALIAS ( " &6Alias&7: %alias% " ) ,
PLOT_INFO_SIZE ( " &6Size&7: %size% " ) ,
2014-11-05 14:42:08 +11:00
2014-10-23 21:21:27 +11:00
PLOT_USER_LIST ( " &6%user%&c, " ) ,
INFO_SYNTAX_CONSOLE ( " /plot info <world> X;Y " ) ,
/ *
* Generating
* /
GENERATING_FLOOR ( " &6Started generating floor from your settings. It will take %time% " ) ,
GENERATING_WALL ( " &6Started generating wall from your settings " ) ,
GENERATING_WALL_FILLING ( " &cStarted generating wall filling from your settings. " ) ,
/ *
* Clearing
* /
2014-11-30 15:59:41 +11:00
CLEARING_PLOT ( " &cClearing plot async. " ) ,
2015-01-31 18:09:48 +11:00
CLEARING_DONE ( " &6Clear completed! " ) ,
2014-10-23 21:21:27 +11:00
CLEARING_DONE_PACKETS ( " &6(&a%time% &6ms for packets) " ) ,
/ *
* Claiming
* /
PLOT_NOT_CLAIMED ( " &cPlot not claimed " ) ,
PLOT_IS_CLAIMED ( " &cThis plot is already claimed " ) ,
CLAIMED ( " &6You successfully claimed the plot " ) ,
/ *
* List
* /
2014-11-02 21:14:47 +01:00
PLOT_LIST_HEADER_PAGED ( " &c(Page &6%cur&c/&6%max&c) &6List of %word% plots " ) ,
2014-10-23 21:21:27 +11:00
PLOT_LIST_HEADER ( " &6List of %word% plots " ) ,
2014-11-02 21:14:47 +01:00
PLOT_LIST_ITEM ( " &c>> &6%id&c:&6%world &c- &6%owner " ) ,
PLOT_LIST_ITEM_ORDERED ( " &c[&6%in&c] >> &6%id&c:&6%world &c- &6%owner " ) ,
2014-10-23 21:21:27 +11:00
PLOT_LIST_FOOTER ( " &c>> &6%word% a total of &c%num% &6claimed %plot%. " ) ,
/ *
* Left
* /
LEFT_PLOT ( " &cYou left a plot " ) ,
2015-01-10 13:19:39 +11:00
/ *
* PlotMe
* /
NOT_USING_PLOTME ( " &cThis server uses the &6PlotSquared &cplot management system. Please use the &6/plots &cinstead " ) ,
2014-10-23 21:21:27 +11:00
/ *
* Wait
* /
WAIT_FOR_TIMER ( " &cA setblock timer is bound to either the current plot or you. Please wait for it to finish " ) ,
/ *
* Chat
* /
PLOT_CHAT_FORMAT ( " &c[&6Plot Chat&c][&6%plot_id%&c] &6%sender%&c: &6%msg% " ) ,
/ *
* Denied
* /
DENIED_REMOVED ( " &cYou successfully undenied the player from this plot " ) ,
DENIED_ADDED ( " &cYou successfully denied the player from this plot " ) ,
DENIED_NEED_ARGUMENT ( " &cArguments are missing. &6/plot denied add <name> &cor &6/plot helpers remove <name> " ) ,
WAS_NOT_DENIED ( " &cThat player was not denied on this plot " ) ,
/ *
* Rain
* /
NEED_ON_OFF ( " &cYou need to specify a value. Possible values: &6on&c, &6off " ) ,
SETTING_UPDATED ( " &cYou successfully updated the setting " ) ,
/ *
* Flag
* /
2015-02-04 00:17:51 +11:00
FLAG_KEY ( " &cKey: %s " ) ,
FLAG_TYPE ( " &cType: %s " ) ,
FLAG_DESC ( " &cDesc: %s " ) ,
2014-10-23 21:21:27 +11:00
NEED_KEY ( " &cPossible values: &6%values% " ) ,
NOT_VALID_FLAG ( " &cThat is not a valid flag " ) ,
NOT_VALID_VALUE ( " &cFlag values must be alphanumerical " ) ,
FLAG_NOT_IN_PLOT ( " &cThe plot does not have that flag " ) ,
FLAG_NOT_REMOVED ( " &cThe flag could not be removed " ) ,
FLAG_NOT_ADDED ( " &cThe flag could not be added " ) ,
FLAG_REMOVED ( " &6Successfully removed flag " ) ,
FLAG_ADDED ( " &6Successfully added flag " ) ,
/ *
* Helper
* /
HELPER_ADDED ( " &6You successfully added a helper to the plot " ) ,
HELPER_REMOVED ( " &6You successfully removed a helper from the plot " ) ,
HELPER_NEED_ARGUMENT ( " &cArguments are missing. &6/plot helpers add <name> &cor &6/plot helpers remove <name> " ) ,
WAS_NOT_ADDED ( " &cThat player was not added as a helper on this plot " ) ,
2015-01-10 21:37:46 +11:00
PLOT_REMOVED_HELPER ( " &6Plot %s of which you were added to has been deleted due to owner inactivity " ) ,
2014-10-23 21:21:27 +11:00
/ *
* Trusted
* /
ALREADY_OWNER ( " &cThat user is already the plot owner. " ) ,
ALREADY_ADDED ( " &cThat user is already added to that category. " ) ,
TRUSTED_ADDED ( " &6You successfully added a trusted user to the plot " ) ,
TRUSTED_REMOVED ( " &6You successfully removed a trusted user from the plot " ) ,
TRUSTED_NEED_ARGUMENT ( " &cArguments are missing. &6/plot trusted add <name> &cor &6/plot trusted remove <name> " ) ,
T_WAS_NOT_ADDED ( " &cThat player was not added as a trusted user on this plot " ) ,
/ *
* Set Owner
* /
SET_OWNER ( " &6You successfully set the plot owner " ) ,
/ *
* Signs
* /
OWNER_SIGN_LINE_1 ( " &cID: &6%id% " ) ,
OWNER_SIGN_LINE_2 ( " &cOwner: " ) ,
OWNER_SIGN_LINE_3 ( " &6%plr% " ) ,
OWNER_SIGN_LINE_4 ( " &2Claimed " ) ,
/ *
* Help
* /
2014-11-09 16:55:43 +01:00
HELP_HEADER ( " &c----------[ &6PlotSquared Help &c]---------- " ) ,
HELP_CATEGORY ( " &cCategory: &6%category%&c, Page: &6%current%&c/&6%max%&c, Displaying: &6%dis%&c/&6%total% " ) ,
HELP_INFO ( " &6You have to specify a category " ) ,
HELP_INFO_ITEM ( " &6/plots help %category% &c- &6%category_desc% " ) ,
HELP_ITEM ( " &6%usage% [%alias%] \ n &c%desc% \ n " ) ,
2014-10-23 21:21:27 +11:00
/ *
* Direction
* /
DIRECTION ( " &6Current direction: %dir% " ) ,
/ *
* Custom
* /
CUSTOM_STRING ( " - " ) ;
2014-11-20 00:00:38 +01:00
/ * *
* Special Language
*
* @see com . intellectualsites . translation . TranslationLanguage
* /
2014-11-21 23:45:46 +01:00
protected final static TranslationLanguage lang = new TranslationLanguage ( " PlotSquared " , " this " , " use " ) ;
2014-11-20 00:00:38 +01:00
/ * *
* The TranslationManager
*
* @see com . intellectualsites . translation . TranslationManager
* /
2014-12-17 20:15:11 -06:00
private static TranslationManager manager ;
2014-11-20 00:00:38 +01:00
/ * *
* The default file
*
* @see com . intellectualsites . translation . TranslationFile
* /
2014-12-17 20:15:11 -06:00
private static TranslationFile defaultFile ;
2014-11-20 00:00:38 +01:00
2014-10-23 21:21:27 +11:00
/ * *
* Default
* /
2014-12-17 20:15:11 -06:00
private String d ;
2014-11-20 00:00:38 +01:00
2014-11-05 14:42:08 +11:00
/ * *
* Translated
* /
2014-12-17 20:15:11 -06:00
private String s ;
2014-09-22 13:02:14 +02:00
2014-11-05 14:42:08 +11:00
/ * *
* Constructor for custom strings .
* /
C ( ) {
/ *
* use setCustomString ( ) ;
* /
}
2014-09-22 13:02:14 +02:00
2014-11-05 14:42:08 +11:00
/ * *
* Constructor
*
2014-12-17 20:15:11 -06:00
* @param d default
2014-11-05 14:42:08 +11:00
* /
C ( final String d ) {
this . d = d ;
if ( this . s = = null ) {
this . s = " " ;
}
}
2014-09-24 22:21:43 +10:00
2014-11-09 16:55:43 +01:00
public static void setupTranslations ( ) {
2015-02-10 22:17:13 +11:00
manager = new TranslationManager ( ) ;
defaultFile = new YamlTranslationFile ( BukkitTranslation . getParent ( PlotMain . getMain ( ) ) , lang , " PlotSquared " , manager ) . read ( ) ;
2014-11-09 16:55:43 +01:00
// register everything in this class
2014-12-16 16:03:20 +11:00
for ( final C c : values ( ) ) {
manager . addTranslationObject ( new TranslationObject ( c . toString ( ) , c . d , " " , " " ) ) ;
2014-11-09 16:55:43 +01:00
}
}
public static void saveTranslations ( ) {
2015-02-10 23:23:12 +11:00
try {
manager . saveAll ( defaultFile ) . saveFile ( defaultFile ) ;
} catch ( Exception e ) {
e . printStackTrace ( ) ;
}
2014-11-09 16:55:43 +01:00
}
2014-11-05 14:42:08 +11:00
/ * *
* Get the default string
*
* @return default
* /
public String d ( ) {
return this . d ;
}
/ * *
* Get translated if exists
*
* @return translated if exists else default
* /
public String s ( ) {
2014-12-21 18:54:22 +11:00
return manager . getTranslated ( toString ( ) , lang ) . getTranslated ( ) . replaceAll ( " &- " , " \ n " ) . replaceAll ( " \\ n " , " \ n " ) ;
2014-11-08 22:47:45 +01:00
/ *
2014-12-16 16:03:20 +11:00
* if ( PlotMain . translations ! = null ) {
* final String t = PlotMain . translations . getString ( this . toString ( ) ) ;
* if ( t ! = null ) {
* this . s = t ;
* }
* }
* if ( this . s . length ( ) < 1 ) {
* return " " ;
* }
* return this . s . replace ( " \\ n " , " \ n " ) ;
* /
2014-11-05 14:42:08 +11:00
}
2014-09-24 22:21:43 +10:00
2014-11-05 14:42:08 +11:00
/ * *
* @return translated and color decoded
2014-12-17 20:15:11 -06:00
*
2014-11-20 00:00:38 +01:00
* @see org . bukkit . ChatColor # translateAlternateColorCodes ( char , String )
2014-11-05 14:42:08 +11:00
* /
public String translated ( ) {
return ChatColor . translateAlternateColorCodes ( '&' , this . s ( ) ) ;
}
2014-09-24 22:21:43 +10:00
}