mirror of
https://github.com/JamesPeters98/ChestsPlusPlus.git
synced 2025-01-10 18:37:42 +01:00
Added Missing Language Messages
This commit is contained in:
parent
27829e0ada
commit
12af23ce67
@ -1,6 +1,7 @@
|
|||||||
package com.jamesdpeters.minecraft.chests.commands;
|
package com.jamesdpeters.minecraft.chests.commands;
|
||||||
|
|
||||||
import com.jamesdpeters.minecraft.chests.ChestsPlusPlus;
|
import com.jamesdpeters.minecraft.chests.ChestsPlusPlus;
|
||||||
|
import com.jamesdpeters.minecraft.chests.lang.Message;
|
||||||
import com.jamesdpeters.minecraft.chests.misc.Messages;
|
import com.jamesdpeters.minecraft.chests.misc.Messages;
|
||||||
import com.jamesdpeters.minecraft.chests.misc.Permissions;
|
import com.jamesdpeters.minecraft.chests.misc.Permissions;
|
||||||
import com.jamesdpeters.minecraft.chests.misc.Settings;
|
import com.jamesdpeters.minecraft.chests.misc.Settings;
|
||||||
@ -15,7 +16,6 @@ import org.bukkit.command.Command;
|
|||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@ -24,15 +24,15 @@ import java.util.stream.Stream;
|
|||||||
public class AutoCraftCommand extends ServerCommand {
|
public class AutoCraftCommand extends ServerCommand {
|
||||||
|
|
||||||
private enum OPTIONS {
|
private enum OPTIONS {
|
||||||
ADD("/autocraft add <group>", "Create/add a Crafting Table to an AutoCraft group"),
|
ADD("/autocraft add <group>", Message.COMMAND_AUTOCRAFT_ADD.getString()),
|
||||||
HELP("/autocraft help","List of commands and their uses!"),
|
HELP("/autocraft help",Message.COMMAND_HELP.getString()),
|
||||||
LIST("/autocraft list","Lists all AutoCraft groups that you own!"),
|
LIST("/autocraft list",Message.COMMAND_AUTOCRAFT_LIST.getString()),
|
||||||
MEMBER("/autocraft member [add/remove <group> <player>] or [list <group>]","Add, remove or list members of a group"),
|
MEMBER("/autocraft member [add/remove <group> <player>] or [list <group>]",Message.COMMAND_MEMBER.getString()),
|
||||||
// MENU("/autocraft menu","Open the AutoCraft menu to display all groups!"),
|
// MENU("/autocraft menu","Open the AutoCraft menu to display all groups!"),
|
||||||
OPEN("/autocraft open <Group>","Open the workbench of an AutoCraft group"),
|
OPEN("/autocraft open <Group>",Message.COMMAND_AUTOCRAFT_OPEN.getString()),
|
||||||
REMOVE("/autocraft remove <Group>", "Delete an AutoCraft group and drop all the Crafting Tables!"),
|
REMOVE("/autocraft remove <Group>", Message.COMMAND_AUTOCRAFT_REMOVE.getString()),
|
||||||
RENAME("/autocraft rename <group> <new-name>","Rename an AutoCraft group."),
|
RENAME("/autocraft rename <group> <new-name>",Message.COMMAND_AUTOCRAFT_RENAME.getString()),
|
||||||
SETPUBLIC("/autocraft setpublic <group> <true/false>", "Set an AutoCraft group to be accessible by anyone.");
|
SETPUBLIC("/autocraft setpublic <group> <true/false>", Message.COMMAND_AUTOCRAFT_SETPUBLIC.getString());
|
||||||
|
|
||||||
String description, commandHelp;
|
String description, commandHelp;
|
||||||
static List<String> valuesList;
|
static List<String> valuesList;
|
||||||
|
@ -2,6 +2,7 @@ package com.jamesdpeters.minecraft.chests.commands;
|
|||||||
|
|
||||||
import com.jamesdpeters.minecraft.chests.ChestsPlusPlus;
|
import com.jamesdpeters.minecraft.chests.ChestsPlusPlus;
|
||||||
import com.jamesdpeters.minecraft.chests.inventories.ChestLinkMenu;
|
import com.jamesdpeters.minecraft.chests.inventories.ChestLinkMenu;
|
||||||
|
import com.jamesdpeters.minecraft.chests.lang.Message;
|
||||||
import com.jamesdpeters.minecraft.chests.misc.Messages;
|
import com.jamesdpeters.minecraft.chests.misc.Messages;
|
||||||
import com.jamesdpeters.minecraft.chests.misc.Permissions;
|
import com.jamesdpeters.minecraft.chests.misc.Permissions;
|
||||||
import com.jamesdpeters.minecraft.chests.misc.Settings;
|
import com.jamesdpeters.minecraft.chests.misc.Settings;
|
||||||
@ -26,16 +27,16 @@ import java.util.stream.Stream;
|
|||||||
public class ChestLinkCommand extends ServerCommand {
|
public class ChestLinkCommand extends ServerCommand {
|
||||||
|
|
||||||
private enum OPTIONS {
|
private enum OPTIONS {
|
||||||
ADD("/chestlink add <group>", "Create/add a chest to a ChestLink group"),
|
ADD("/chestlink add <group>", Message.COMMAND_CHESTLINK_ADD.getString()),
|
||||||
HELP("/chestlink help","List of commands and their uses!"),
|
HELP("/chestlink help", Message.COMMAND_HELP.getString()),
|
||||||
LIST("/chestlink list","Lists all ChestLinks that you own!"),
|
LIST("/chestlink list", Message.COMMAND_CHESTLINK_LIST.getString()),
|
||||||
MEMBER("/chestlink member [add/remove <group> <player>] or [list <group>]","Add, remove or list members of a group"),
|
MEMBER("/chestlink member [add/remove <group> <player>] or [list <group>]", Message.COMMAND_MEMBER.getString()),
|
||||||
MENU("/chestlink menu","Open the ChestLink menu to display all groups!"),
|
MENU("/chestlink menu", Message.COMMAND_CHESTLINK_MENU.getString()),
|
||||||
OPEN("/chestlink open <Group>","Open the inventory of a ChestLink group"),
|
OPEN("/chestlink open <Group>", Message.COMMAND_CHESTLINK_OPEN.getString()),
|
||||||
REMOVE("/chestlink remove <Group>", "Delete a ChestLink and drop its inventory at your feet!"),
|
REMOVE("/chestlink remove <Group>", Message.COMMAND_CHESTLINK_REMOVE.getString()),
|
||||||
RENAME("/chestlink rename <group> <new-name>","Rename a ChestLink."),
|
RENAME("/chestlink rename <group> <new-name>", Message.COMMAND_CHESTLINK_RENAME.getString()),
|
||||||
SETPUBLIC("/chestlink setpublic <group> <true/false>", "Set a ChestLink to be accessible by anyone."),
|
SETPUBLIC("/chestlink setpublic <group> <true/false>", Message.COMMAND_CHESTLINK_SETPUBLIC.getString()),
|
||||||
SORT("/chestlink sort <group> <sort-method>","Set the sorting option for the given ChestLink.");
|
SORT("/chestlink sort <group> <sort-method>", Message.COMMAND_CHESTLINK_SORT.getString());
|
||||||
|
|
||||||
String description, commandHelp;
|
String description, commandHelp;
|
||||||
static List<String> valuesList;
|
static List<String> valuesList;
|
||||||
|
@ -97,7 +97,8 @@ public class LangFileProperties {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void saveLangFile(Properties properties, File file) throws IOException {
|
public static void saveLangFile(Properties properties, File file) throws IOException {
|
||||||
properties.store(new FileOutputStream(file),"Chests++ Language File (Version "+ BuildConstants.VERSION+")");
|
properties.store(new FileOutputStream(file),"Chests++ Language File (Version "+ BuildConstants.VERSION+")\n" +
|
||||||
|
"NOTE: This file gets replaced when the plugin launches! If you want to make modifications create a copy first!");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static File getLangFile(String fileName, boolean create) throws IOException {
|
private static File getLangFile(String fileName, boolean create) throws IOException {
|
||||||
|
@ -39,7 +39,29 @@ public enum Message {
|
|||||||
//AutoCraftMessages
|
//AutoCraftMessages
|
||||||
LIST_OF_AUTOCRAFTERS("List of your AutoCraft Stations:"),
|
LIST_OF_AUTOCRAFTERS("List of your AutoCraft Stations:"),
|
||||||
MUST_LOOK_AT_CRAFTING_TABLE("You must be looking at the Crafting Table you want to AutoCraft with!"),
|
MUST_LOOK_AT_CRAFTING_TABLE("You must be looking at the Crafting Table you want to AutoCraft with!"),
|
||||||
INVALID_AUTOCRAFTER("Invalid AutoCrafter - You must place a sign on any side of a Crafting Table, and it must not already by apart of a group!");
|
INVALID_AUTOCRAFTER("Invalid AutoCrafter - You must place a sign on any side of a Crafting Table, and it must not already by apart of a group!"),
|
||||||
|
|
||||||
|
//Commands
|
||||||
|
COMMAND_MEMBER("Add, remove or list members of a group"),
|
||||||
|
COMMAND_HELP("List of commands and their uses!"),
|
||||||
|
|
||||||
|
//AutoCraft
|
||||||
|
COMMAND_AUTOCRAFT_ADD("Create/add a Crafting Table to an AutoCraft group"),
|
||||||
|
COMMAND_AUTOCRAFT_LIST("Lists all AutoCraft groups that you own!"),
|
||||||
|
COMMAND_AUTOCRAFT_OPEN("Open the workbench of an AutoCraft group"),
|
||||||
|
COMMAND_AUTOCRAFT_REMOVE("Delete an AutoCraft group and drop all the Crafting Tables!"),
|
||||||
|
COMMAND_AUTOCRAFT_RENAME("Rename an AutoCraft group."),
|
||||||
|
COMMAND_AUTOCRAFT_SETPUBLIC("Set an AutoCraft group to be accessible by anyone."),
|
||||||
|
|
||||||
|
//ChestLink
|
||||||
|
COMMAND_CHESTLINK_MENU("Open the ChestLink menu to display all groups!"),
|
||||||
|
COMMAND_CHESTLINK_SORT("Set the sorting option for the given ChestLink."),
|
||||||
|
COMMAND_CHESTLINK_ADD("Create/add a chest to a ChestLink group"),
|
||||||
|
COMMAND_CHESTLINK_LIST("Lists all ChestLinks that you own!"),
|
||||||
|
COMMAND_CHESTLINK_OPEN("Open the inventory of a ChestLink group"),
|
||||||
|
COMMAND_CHESTLINK_REMOVE("Delete a ChestLink and drop its inventory at your feet!"),
|
||||||
|
COMMAND_CHESTLINK_RENAME("Rename a ChestLink."),
|
||||||
|
COMMAND_CHESTLINK_SETPUBLIC("Set a ChestLink to be accessible by anyone.");
|
||||||
|
|
||||||
String message;
|
String message;
|
||||||
Message(String defaultMessage){
|
Message(String defaultMessage){
|
||||||
|
@ -1,32 +1,49 @@
|
|||||||
#Chests++ Language File (Version 2.2.1-Release)
|
#Chests++ Language File (Version 2.2.1-Release)
|
||||||
#Tue Jul 28 19:30:22 BST 2020
|
#NOTE: This file gets replaced when the plugin launches! If you want to make modifications create a copy first!
|
||||||
STORAGE_REMOVED=Successfully removed {storage_type} from group\: {storage_group} for {player_name}
|
#Tue Jul 28 23:39:13 BST 2020
|
||||||
CANNOT_RENAME_GROUP_DOESNT_EXIST=Error renaming group\! {storage_identifier} doesn't exist\!
|
COMMAND_CHESTLINK_LIST=Lists all ChestLinks that you own\!
|
||||||
LIST_MEMBERS_OF_GROUP=Members of {storage_type} group {storage_identifier}\: {player_list}
|
COMMAND_MEMBER=Add, remove or list members of a group
|
||||||
SORT=Sort method for {storage_identifier} has been set to {sort_method}
|
COMMAND_AUTOCRAFT_LIST=Lists all AutoCraft groups that you own\!
|
||||||
LIST_OF_CHESTLINK=List of your ChestLinks\:
|
COMMAND_CHESTLINK_OPEN=Open the inventory of a ChestLink group
|
||||||
LIST_OF_AUTOCRAFTERS=List of your AutoCraft Stations\:
|
|
||||||
OWNER_HAS_TOO_MANY_CHESTS=Owner\: {player_name} has reached the limit of groups allowed\!
|
|
||||||
MUST_LOOK_AT_CRAFTING_TABLE=You must be looking at the Crafting Table you want to AutoCraft with\!
|
|
||||||
CHEST_HAD_OVERFLOW=Chest item's wouldn't all fit into ChestLink\!
|
|
||||||
GROUP_DOESNT_EXIST={storage_group} isn't a valid {storage_type} group to remove\!
|
|
||||||
INVALID_ID=Invalid {storage_type} ID\! Must not contain a colon '\:' unless you are referencing another players group that you are a member of
|
|
||||||
UNABLE_TO_ADD_MEMBER_TO_ALL=Unable to add player {player_name} to {storage_type}\!
|
|
||||||
REMOVED_MEMBER=Successfully removed {player_name} from {storage_type} group {storage_identifier}
|
|
||||||
STORAGE_ADDED=Successfully added {storage_type} to group\: {storage_group} for {player_name}
|
|
||||||
NO_ADDITIONAL_MEMBERS=There are no additional members in the group\: {storage_identifier}
|
|
||||||
REMOVE_MEMBER_FROM_ALL=Successfully removed {player_name} from all {storage_type} groups
|
|
||||||
CURRENT_MEMBERS=Current Members\: {player_list}
|
|
||||||
CANNOT_RENAME_GROUP_ALREADY_EXISTS=Error renaming group\! {storage_identifier} already exists\!
|
|
||||||
ADDED_MEMBER=Successfully added {player_name} to {storage_type} group {storage_identifier}
|
|
||||||
UNABLE_TO_REMOVE_MEMBER=Unable to remove player {player_name} from {storage_type}\! Were they already removed?
|
|
||||||
INVALID_AUTOCRAFTER=Invalid AutoCrafter - You must place a sign on any side of a Crafting Table, and it must not already by apart of a group\!
|
|
||||||
NO_PERMISSION=You don't have permission to do that\!
|
|
||||||
MUST_LOOK_AT_CHEST=You must be looking at the chest you want to ChestLink\!
|
MUST_LOOK_AT_CHEST=You must be looking at the chest you want to ChestLink\!
|
||||||
FOUND_UNLINKED_STORAGE=This {storage_type} wasn't linked to your system\! It has been added under the {storage_identifier} group\!
|
COMMAND_AUTOCRAFT_OPEN=Open the workbench of an AutoCraft group
|
||||||
INVALID_CHESTLINK=Invalid ChestLink - You must place a sign on the front of a chest / you should ensure there is space for a sign on front of the chest\!
|
|
||||||
ADDED_MEMBER_TO_ALL=Successfully added {player_name} to all {storage_type} groups
|
ADDED_MEMBER_TO_ALL=Successfully added {player_name} to all {storage_type} groups
|
||||||
SET_PUBLICITY=There are no additional members in the group\: {storage_identifier}
|
INVALID_CHESTLINK=Invalid ChestLink - You must place a sign on the front of a chest / you should ensure there is space for a sign on front of the chest\!
|
||||||
|
ADDED_MEMBER=Successfully added {player_name} to {storage_type} group {storage_identifier}
|
||||||
|
LIST_OF_CHESTLINK=List of your ChestLinks\:
|
||||||
|
OWNER_HAS_TOO_MANY_CHESTS=Owner\: {player_name} has reached the limit of groups allowed\!
|
||||||
|
SORT=Sort method for {storage_identifier} has been set to {sort_method}
|
||||||
|
NO_PERMISSION=You don't have permission to do that\!
|
||||||
|
COMMAND_CHESTLINK_SETPUBLIC=Set a ChestLink to be accessible by anyone.
|
||||||
|
CURRENT_MEMBERS=Current Members\: {player_list}
|
||||||
|
CANNOT_RENAME_GROUP_DOESNT_EXIST=Error renaming group\! {storage_identifier} doesn't exist\!
|
||||||
|
STORAGE_ADDED=Successfully added {storage_type} to group\: {storage_group} for {player_name}
|
||||||
|
REMOVED_MEMBER=Successfully removed {player_name} from {storage_type} group {storage_identifier}
|
||||||
REMOVED_GROUP=Successfully removed group {storage_group} from your {storage_type}'s\!
|
REMOVED_GROUP=Successfully removed group {storage_group} from your {storage_type}'s\!
|
||||||
|
LIST_OF_AUTOCRAFTERS=List of your AutoCraft Stations\:
|
||||||
|
INVALID_AUTOCRAFTER=Invalid AutoCrafter - You must place a sign on any side of a Crafting Table, and it must not already by apart of a group\!
|
||||||
|
LIST_MEMBERS_OF_GROUP=Members of {storage_type} group {storage_identifier}\: {player_list}
|
||||||
|
REMOVE_MEMBER_FROM_ALL=Successfully removed {player_name} from all {storage_type} groups
|
||||||
|
COMMAND_CHESTLINK_RENAME=Rename a ChestLink.
|
||||||
|
STORAGE_REMOVED=Successfully removed {storage_type} from group\: {storage_group} for {player_name}
|
||||||
|
COMMAND_CHESTLINK_REMOVE=Delete a ChestLink and drop its inventory at your feet\!
|
||||||
|
COMMAND_CHESTLINK_MENU=Open the ChestLink menu to display all groups\!
|
||||||
|
GROUP_DOESNT_EXIST={storage_group} isn't a valid {storage_type} group to remove\!
|
||||||
|
COMMAND_CHESTLINK_SORT=Set the sorting option for the given ChestLink.
|
||||||
|
SET_PUBLICITY=There are no additional members in the group\: {storage_identifier}
|
||||||
|
CANNOT_RENAME_GROUP_ALREADY_EXISTS=Error renaming group\! {storage_identifier} already exists\!
|
||||||
|
NO_ADDITIONAL_MEMBERS=There are no additional members in the group\: {storage_identifier}
|
||||||
|
CHEST_HAD_OVERFLOW=Chest item's wouldn't all fit into ChestLink\!
|
||||||
|
COMMAND_AUTOCRAFT_ADD=Create/add a Crafting Table to an AutoCraft group
|
||||||
MUST_HOLD_SIGN=You must be holding a sign to do that\!
|
MUST_HOLD_SIGN=You must be holding a sign to do that\!
|
||||||
|
COMMAND_CHESTLINK_ADD=Create/add a chest to a ChestLink group
|
||||||
|
COMMAND_HELP=List of commands and their uses\!
|
||||||
|
UNABLE_TO_ADD_MEMBER_TO_ALL=Unable to add player {player_name} to {storage_type}\!
|
||||||
|
COMMAND_AUTOCRAFT_RENAME=Rename an AutoCraft group.
|
||||||
|
MUST_LOOK_AT_CRAFTING_TABLE=You must be looking at the Crafting Table you want to AutoCraft with\!
|
||||||
|
COMMAND_AUTOCRAFT_REMOVE=Delete an AutoCraft group and drop all the Crafting Tables\!
|
||||||
|
UNABLE_TO_REMOVE_MEMBER=Unable to remove player {player_name} from {storage_type}\! Were they already removed?
|
||||||
|
COMMAND_AUTOCRAFT_SETPUBLIC=Set an AutoCraft group to be accessible by anyone.
|
||||||
ALREADY_PART_OF_GROUP=This {storage_type} is already a part of a group\!
|
ALREADY_PART_OF_GROUP=This {storage_type} is already a part of a group\!
|
||||||
|
INVALID_ID=Invalid {storage_type} ID\! Must not contain a colon '\:' unless you are referencing another players group that you are a member of
|
||||||
|
FOUND_UNLINKED_STORAGE=This {storage_type} wasn't linked to your system\! It has been added under the {storage_identifier} group\!
|
||||||
|
Loading…
Reference in New Issue
Block a user