diff --git a/src/main/java/de/rayzs/pat/plugin/BukkitLoader.java b/src/main/java/de/rayzs/pat/plugin/BukkitLoader.java index c09fdf72..5ff465ba 100644 --- a/src/main/java/de/rayzs/pat/plugin/BukkitLoader.java +++ b/src/main/java/de/rayzs/pat/plugin/BukkitLoader.java @@ -41,7 +41,7 @@ public class BukkitLoader extends JavaPlugin { public void onLoad() { Configurator.createResourcedFile(getDataFolder(), "files\\bukkit-config.yml", "config.yml", false); Configurator.createResourcedFile(getDataFolder(), "files\\bukkit-storage.yml", "storage.yml", false); - Configurator.createResourcedFile(getDataFolder(), "files\\placeholders.yml", "placeholders.yml", false); + Configurator.createResourcedFile(getDataFolder(), "files\\bukkit-placeholders.yml", "placeholders.yml", false); } @Override diff --git a/src/main/java/de/rayzs/pat/plugin/BungeeLoader.java b/src/main/java/de/rayzs/pat/plugin/BungeeLoader.java index 27822280..2a0d1c9b 100644 --- a/src/main/java/de/rayzs/pat/plugin/BungeeLoader.java +++ b/src/main/java/de/rayzs/pat/plugin/BungeeLoader.java @@ -33,7 +33,7 @@ public class BungeeLoader extends Plugin { public void onLoad() { Configurator.createResourcedFile(getDataFolder(), "files\\proxy-config.yml", "config.yml", false); Configurator.createResourcedFile(getDataFolder(), "files\\proxy-storage.yml", "storage.yml", false); - Configurator.createResourcedFile(getDataFolder(), "files\\placeholders.yml", "placeholders.yml", false); + Configurator.createResourcedFile(getDataFolder(), "files\\proxy-placeholders.yml", "placeholders.yml", false); } @Override diff --git a/src/main/java/de/rayzs/pat/plugin/VelocityLoader.java b/src/main/java/de/rayzs/pat/plugin/VelocityLoader.java index 33269810..1951eeeb 100644 --- a/src/main/java/de/rayzs/pat/plugin/VelocityLoader.java +++ b/src/main/java/de/rayzs/pat/plugin/VelocityLoader.java @@ -62,7 +62,7 @@ public class VelocityLoader { Configurator.createResourcedFile("./plugins/ProAntiTab", "files\\proxy-config.yml", "config.yml", false); Configurator.createResourcedFile("./plugins/ProAntiTab", "files\\proxy-storage.yml", "storage.yml", false); - Configurator.createResourcedFile("./plugins/ProAntiTab", "files\\placeholders.yml", "placeholders.yml", false); + Configurator.createResourcedFile("./plugins/ProAntiTab", "files\\proxy-placeholders.yml", "placeholders.yml", false); Reflection.initialize(server); Storage.CURRENT_VERSION = pluginContainer.getDescription().getVersion().get(); diff --git a/src/main/resources/files/placeholders.yml b/src/main/resources/files/bukkit-placeholders.yml similarity index 100% rename from src/main/resources/files/placeholders.yml rename to src/main/resources/files/bukkit-placeholders.yml diff --git a/src/main/resources/files/proxy-placeholders.yml b/src/main/resources/files/proxy-placeholders.yml new file mode 100644 index 00000000..424fd8b2 --- /dev/null +++ b/src/main/resources/files/proxy-placeholders.yml @@ -0,0 +1,38 @@ +# ____ ___ __ _ ______ __ +# / __ \_________ / | ____ / /_(_)_ __/___ _/ /_ +# / /_/ / ___/ __ \/ /| | / __ \/ __/ / / / / __ `/ __ \ +# / ____/ / / /_/ / ___ |/ / / / /_/ / / / / /_/ / /_/ / +# /_/ /_/ \____/_/ |_/_/ /_/\__/_/ /_/ \__,_/_.___/ +# placeholders.yml (PlaceholderAPI Hook) +# (!) Warning: Those placeholders only work if PlaceholderAPI is installed! + +# This here are all placeholders PAT can provide you with. +# All these placeholders can be edited and accessed on the backend server's placeholder.yml file. +# Here's a small overview of all placeholders: + +# Some general Placeholders to work with: +# %pat_general_user% = Get the name of the user who receives this message. +# %pat_general_version_current% = Get current version name of PAT. +# %pat_general_version_newest% = Get newest version name of PAT. + +# Placeholders of some of the messages in the config.yml: +# %pat_message_unknowncommand% = Get the "unknown command"-message from the config.yml of PAT. [cancel-blocked-command] +# %pat_message_blocked% = Get the "command blocked"-message from the config.yml of PAT. [custom-unknown-command] + +# Placeholders to list all commands: +# %pat_list_size_commands% = Get the amount of all listed commands. +# %pat_list_commands% = Get all listed commands. +# %pat_list_sorted_commands% = Get all listed commands in alphabetic order. (A-Z) +# %pat_list_reversed_groups% = Get all listed commands in reversed alphabetic order. (Z-A) + +# Placeholders to list all commands of a group: (replace 'xxx' with the group-name) +# %pat_list_size_commands_group_xxx% = Get the amount of all commands of a group. +# %pat_list_commands_group_xxx% = Get all commands of a group. +# %pat_list_sorted_commands_group_xxx% = Get all commands of a group in alphabetic order. (A-Z) +# %pat_list_reversed_commands_group_xxx% = Get all commands of a group in reversed alphabetic order. (Z-A) + +# Placeholders to list all groups: +# %pat_list_size_groups% = Get the amount of all available groups. +# %pat_list_groups% = Get all groups. +# %pat_list_sorted_groups% = Get all groups in alphabetic order. (A-Z) +# %pat_list_reversed_groups% = Get all groups in reversed alphabetic order. (Z-A) \ No newline at end of file