Bundle live TrueOG Network config files

This commit is contained in:
NotAlexNoyle committed 2026-05-14 12:54:12 -04:00
1 parent b2b55b1cb4
commit 08e3b75802
11 files changed
+2764 -230

No files matched your search

@@ -86,7 +86,7 @@ public class ArenaManagerImpl implements Loadable, ArenaManager {
gui.setEmptyIndicator(ItemBuilder.of(Material.PAPER).name(lang.getMessage("GUI.kit-selector.buttons.empty.name")).build());
plugin.getGuiListener().addGui(gui);
if (FileUtil.checkNonEmpty(file, true)) {
if (FileUtil.checkNonEmpty(plugin, file, FILE_NAME)) {
try (final Reader reader = new InputStreamReader(new FileInputStream(file), Charsets.UTF_8)) {
final List<ArenaData> data = JsonUtil.getObjectMapper().readValue(reader, new TypeReference<List<ArenaData>>() {});
@@ -74,7 +74,7 @@ public class KitManagerImpl implements Loadable, KitManager {
gui.setEmptyIndicator(ItemBuilder.of(Material.PAPER).name(lang.getMessage("GUI.kit-selector.buttons.empty.name")).build());
plugin.getGuiListener().addGui(gui);
if (FileUtil.checkNonEmpty(file, true)) {
if (FileUtil.checkNonEmpty(plugin, file, FILE_NAME)) {
try (final Reader reader = new InputStreamReader(new FileInputStream(file), Charsets.UTF_8)) {
final Map<String, KitData> data = JsonUtil.getObjectMapper().readValue(reader, new TypeReference<LinkedHashMap<String, KitData>>() {});
@@ -132,7 +132,7 @@ public class QueueManager implements Loadable, DQueueManager, Listener {
gui.setEmptyIndicator(ItemBuilder.of(Material.PAPER).name(lang.getMessage("GUI.queues.buttons.empty.name")).build());
plugin.getGuiListener().addGui(gui);
if (FileUtil.checkNonEmpty(file, true)) {
if (FileUtil.checkNonEmpty(plugin, file, FILE_NAME)) {
try (final Reader reader = new InputStreamReader(new FileInputStream(file), Charsets.UTF_8)) {
final List<QueueData> data = JsonUtil.getObjectMapper().readValue(reader, new TypeReference<List<QueueData>>() {});
@@ -70,7 +70,7 @@ public class QueueSignManagerImpl implements Loadable, QueueSignManager, Listene
@Override
public void handleLoad() throws IOException {
if (FileUtil.checkNonEmpty(file, true)) {
if (FileUtil.checkNonEmpty(plugin, file, FILE_NAME)) {
try (final Reader reader = new InputStreamReader(new FileInputStream(file), Charsets.UTF_8)) {
final List<QueueSignData> data = JsonUtil.getObjectMapper().readValue(reader, new TypeReference<List<QueueSignData>>() {});
@@ -2,6 +2,8 @@ package me.realized.duels.util.io;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import org.bukkit.plugin.java.JavaPlugin;
public final class FileUtil {
@@ -16,5 +18,21 @@ public final class FileUtil {
return file.length() > 0;
}
public static boolean checkNonEmpty(final JavaPlugin plugin, final File file, final String resourceName) throws IOException {
if (!file.exists()) {
try (final InputStream in = plugin.getResource(resourceName)) {
if (in != null) {
plugin.saveResource(resourceName, false);
return file.exists() && file.length() > 0;
}
}
file.createNewFile();
return false;
}
return file.length() > 0;
}
private FileUtil() {}
}
+278
View File
@@ -0,0 +1,278 @@
[
{
"name": "Colosseum",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": 55.49686433969832,
"y": 59.0,
"z": -202.6362086146994,
"pitch": -0.60942197,
"yaw": -89.75693
},
"2": {
"world": "world",
"x": 75.46398318044193,
"y": 59.0,
"z": -202.52999087182008,
"pitch": -0.60939837,
"yaw": 89.9418
}
}
},
{
"name": "Atlantis",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": -26.41477915350758,
"y": 55.0,
"z": -95.5106048888244,
"pitch": 1.4551066,
"yaw": 145.91321
},
"2": {
"world": "world",
"x": -33.65167309796145,
"y": 55.0,
"z": -105.59182472552135,
"pitch": 0.9963382,
"yaw": -42.646122
}
}
},
{
"name": "Olympus",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": 57.59204055536774,
"y": 135.0,
"z": -283.58315941121555,
"pitch": -4.7385693E-6,
"yaw": -128.06046
},
"2": {
"world": "world",
"x": 73.5209421955976,
"y": 135.0,
"z": -296.48495555805994,
"pitch": 0.90000695,
"yaw": 50.58954
}
}
},
{
"name": "Ender",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": 131.61028885550434,
"y": 66.0,
"z": -197.40162492885844,
"pitch": 4.246074,
"yaw": -55.41757
},
"2": {
"world": "world",
"x": 141.44263016904074,
"y": 66.0,
"z": -190.50657886126967,
"pitch": 5.225271,
"yaw": 124.75529
}
}
},
{
"name": "Cave",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": 118.69999998807907,
"y": 55.0,
"z": -346.69999998807907,
"pitch": 1.1483536,
"yaw": 48.66919
},
"2": {
"world": "world",
"x": 107.30000001192093,
"y": 55.0,
"z": -337.54946900224036,
"pitch": 1.1483431,
"yaw": -128.61905
}
}
},
{
"name": "Blizzard",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": 127.4580624375855,
"y": 104.0,
"z": -347.62288390730174,
"pitch": 2.341364,
"yaw": -41.75641
},
"2": {
"world": "world",
"x": 146.39662932651194,
"y": 104.0,
"z": -326.61162950311007,
"pitch": -0.54451716,
"yaw": 136.26567
}
}
},
{
"name": "Fungi",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": 105.35792848029125,
"y": 67.0,
"z": -268.32241451694483,
"pitch": 0.109432444,
"yaw": 43.32872
},
"2": {
"world": "world",
"x": 91.80059950686972,
"y": 67.0,
"z": -254.6828276607425,
"pitch": -4.9823847,
"yaw": -133.12303
}
}
},
{
"name": "Hell",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": 121.41071349306567,
"y": 60.0,
"z": -138.57077534355884,
"pitch": -0.478306,
"yaw": -61.254578
},
"2": {
"world": "world",
"x": 145.5087815547279,
"y": 60.0,
"z": -127.71383267494042,
"pitch": -2.0450191,
"yaw": 116.41803
}
}
},
{
"name": "Castle",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": 5.170926662061487,
"y": 64.0,
"z": -133.02614929495763,
"pitch": -2.4595802,
"yaw": -52.077698
},
"2": {
"world": "world",
"x": 32.257912849139665,
"y": 64.0,
"z": -106.75902571834767,
"pitch": -1.6762114,
"yaw": 132.84094
}
}
},
{
"name": "Frozone",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": -188.2938029188036,
"y": 64.0,
"z": -116.72000904535518,
"pitch": -0.8696813,
"yaw": -133.4802
},
"2": {
"world": "world",
"x": -169.60359403644102,
"y": 65.0,
"z": -138.4035000592807,
"pitch": -2.4364066,
"yaw": 42.971863
}
}
},
{
"name": "Sewer",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": -100.5592574413772,
"y": 47.0,
"z": -291.4810994560753,
"pitch": 1.0655245,
"yaw": -0.38302612
},
"2": {
"world": "world",
"x": -100.34055730115013,
"y": 47.0,
"z": -270.7572329349343,
"pitch": -0.6970352,
"yaw": 179.63998
}
}
},
{
"name": "Chasm",
"disabled": false,
"kits": [ ],
"positions": {
"1": {
"world": "world",
"x": -229.5459621844064,
"y": 39.0,
"z": -291.30000001192093,
"pitch": 5.59276,
"yaw": -179.20012
},
"2": {
"world": "world",
"x": -229.47569102892575,
"y": 38.0,
"z": -309.3982484125289,
"pitch": 0.3050822,
"yaw": 3.1269212
}
}
}
]
+141 -123
View File
@@ -9,7 +9,7 @@ supported-plugins:
CombatTagPlus:
# If set to 'true', players will not be able to duel while combat tagged.
# default: true
prevent-duel-if-tagged: true
prevent-duel-if-tagged: false
# If set to 'true', players will not be combat tagged while in duel.
# default: true
@@ -17,7 +17,7 @@ supported-plugins:
PvPManager:
# If set to 'true', players will not be able to duel while combat tagged.
# default: true
prevent-duel-if-tagged: true
prevent-duel-if-tagged: false
# If set to 'true', players will not be combat tagged while in duel.
# default: true
@@ -25,11 +25,11 @@ supported-plugins:
CombatLogX:
# If set to 'true', players will not be able to duel while combat tagged.
# default: true
prevent-duel-if-tagged: true
prevent-duel-if-tagged: false
# If set to 'true', players will not be combat tagged while in duel.
# default: true
prevent-tag-in-duel: true
prevent-tag-in-duel: false
EternalCombat:
# If set to 'true', players will not be able to duel while combat tagged.
# default: true
@@ -41,7 +41,7 @@ supported-plugins:
Essentials:
# If set to 'true', players in vanish will be automatically unvanished at the start of a duel.
# default: true
auto-unvanish: true
auto-unvanish: false
# If set to 'true', players will not be able to use '/back' to teleport back to the arena after dying in a duel.
# default: true
@@ -62,10 +62,10 @@ supported-plugins:
duelzone:
# If set to 'true', players will be able to use duel only in the regions listed below.
# default: false
enabled: false
enabled: true
# List of regions to allow dueling.
regions: [spawn, lobby]
regions: [Atlantis, Blizzard, Castle, Chasm, Colosseum, Ender, Frozone, Fungi, Hell, Olympus, Sewer]
PlayerBounties-OG:
# If set to 'true', bounty claims and new bounty placements involving a player in a duel will be cancelled.
# default: true
@@ -107,16 +107,16 @@ request:
# NOTE: If set to 'false', Kit Selector will first open instead of Request Settings GUI when initiating a duel request.
# default: true
enabled: true
# If set to 'true', players will drop their inventory items on death in an own inventory duel.
# WARNING: Players will NOT have their inventories restored after the duel if this option is enabled!
# WARNING: Players will NOT have their inventories restored after the duel if this option is enabled!
# Increase 'teleport-delay' so that the winner has time to pick up dropped items.
# default: false
drop-inventory-items: false
# If set to 'true', players without the permission 'duels.use.own-inventory' will not be able to enable own inventory option.
# default: false
use-permission: false
use-permission: true
kit-selecting:
# If set to 'true', players will be able to choose a kit they wish to fight with through the Kit Selector GUI.
@@ -143,7 +143,7 @@ request:
# If set to 'true', players without the permission 'duels.use.item-betting' will not be able to enable item betting.
# default: false
use-permission: false
use-permission: true
money-betting:
# If set to 'true', players will be able to bet money on their duel by using the command '/duel [player] [bet amount]'.
@@ -152,18 +152,18 @@ request:
# If set to 'true', players without the permission 'duels.use.money-betting' will not be able to bet money on their duel.
# default: false
use-permission: false
use-permission: true
# Request expiration, in seconds.
# default: 30
expiration: 30
expiration: 60
duel:
match:
# The max duration of a match, in minutes. Setting it to -1 will disable duration limit.
# default: -1
max-duration: -1
max-duration: 10
start-commands:
# If set to 'true', the commands listed below will run FOR EACH player at the start of a match.
@@ -177,12 +177,12 @@ duel:
# Available placeholders:
# %player% - Name of the player entering the match
commands:
- 'broadcast %player% is entering a duel!'
- 'broadcast &7[&a&lTrue&c&lOG &e&lNetwork&7] %player% &cis entering a duel!'
end-commands:
# If set to 'true', the commands listed below will run at the end of a match.
# default: false
enabled: false
enabled: true
# If set to 'true', end commands will run only for matches started through the queue system.
# default: false
@@ -195,13 +195,12 @@ duel:
# %arena% - Name of the arena the match was played in
# %bet_amount% - Bet amount of the match
commands:
- 'give %winner% diamond 1'
- 'give %loser% dirt 1'
- 'broadcast &7[&a&lTrue&c&lOG &e&lNetwork&7] &2%winner% &ahas won %bet_amount% in a duel against &4%loser% &ain Areana &d%arena&a!'
projectile-hit-message:
# If set to 'true', a message from lang.yml will be sent to the shooter of the projectile.
# default: true
enabled: true
enabled: false
# Projectile types to display the message.
types: [ARROW, TIPPED_ARROW, SPECTRAL_ARROW, TRIDENT]
@@ -246,11 +245,11 @@ duel:
# If set to 'true', players will be teleported to the location where they were before the duel instead of duel lobby.
# default: false
teleport-to-last-location: false
teleport-to-last-location: true
# Seconds to wait before teleporting the winner after the duel.
# default: 5
teleport-delay: 5
teleport-delay: 3
# If set to 'true', a firework will spawn at the winner's location when a duel ends.
# default: true
@@ -266,11 +265,11 @@ duel:
# If set to 'true', players in duel will not be able to drop items.
# default: false
prevent-item-drop: false
prevent-item-drop: true
# If set to 'true', players in duel will not be able to pickup items on the ground.
# default: false
prevent-item-pickup: false
prevent-item-pickup: true
limit-teleportation:
# If set to 'true', teleportation while in duel will be limited to the distance specified below.
@@ -281,7 +280,7 @@ duel:
# The max distance players can teleport while in a duel. '-1' to prevent all teleportation.
# NOTE: If players are getting stuck, try increasing this value.
# default: 5.0
distance-allowed: 5.0
distance-allowed: 2.0
# If set to 'true', only commands listed in 'whitelisted-commands' will be usable while in a duel.
# default: false
@@ -306,81 +305,100 @@ duel:
# List of commands to block while in a duel.
# NOTE: Only active if 'block-all-commands' is disabled!
blacklisted-commands:
- 'heal'
- 'eheal'
- 'essentials:heal'
- 'essentials:eheal'
- 'kit'
- 'ekit'
- 'kits'
- 'ekits'
- 'essentials:kit'
- 'essentials:ekit'
- 'essentials:kits'
- 'essentials:ekits'
- 'enderchest'
- 'echest'
- 'eechest'
- 'eenderchest'
- 'endersee'
- 'eendersee'
- 'ec'
- 'eec'
- 'essentials:enderchest'
- 'essentials:echest'
- 'essentials:eechest'
- 'essentials:eenderchest'
- 'essentials:endersee'
- 'essentials:eendersee'
- 'essentials:ec'
- 'essentials:eec'
- 'tpaccept'
- 'etpaccept'
- 'tpyes'
- 'etpyes'
- 'essentials:tpaccept'
- 'essentials:etpaccept'
- 'essentials:tpyes'
- 'essentials:etpyes'
- 'tpahere'
- 'etpahere'
- 'essentials:tpahere'
- 'essentials:etpahere'
- 'back'
- 'eback'
- 'return'
- 'ereturn'
- 'essentials:back'
- 'essentials:eback'
- 'essentials:return'
- 'essentials:ereturn'
- 'sethome'
- 'esethome'
- 'createhome'
- 'ecreatehome'
- 'essentials:sethome'
- 'essentials:esethome'
- 'essentials:createhome'
- 'essentials:ecreatehome'
- 'spawn'
- 'espawn'
- 'essentials:spawn'
- 'essentials:espawn'
- 'vault'
- 'chest'
- 'pv'
- 'playervaults'
- 'playervaults:vault'
- 'playervaults:chest'
- 'playervaults:pv'
- 'playervaults:playervaults'
- 'gmc'
- 'gamemode'
- 'spawn'
- 'home'
- 'union home'
- 'duel'
- 'vault'
- 'spectate'
- 'nc'
- 'noclip'
- 'bank'
- 'pay'
- 'deposit'
- 'withdraw'
- 'gmsp'
- 'tp'
- 'tpa'
- 'world'
- 'openinv'
- 'heal'
- 'eheal'
- 'essentials:heal'
- 'essentials:eheal'
- 'kit'
- 'ekit'
- 'kits'
- 'ekits'
- 'essentials:kit'
- 'essentials:ekit'
- 'essentials:kits'
- 'essentials:ekits'
- 'enderchest'
- 'echest'
- 'eechest'
- 'eenderchest'
- 'endersee'
- 'eendersee'
- 'ec'
- 'eec'
- 'essentials:enderchest'
- 'essentials:echest'
- 'essentials:eechest'
- 'essentials:eenderchest'
- 'essentials:endersee'
- 'essentials:eendersee'
- 'essentials:ec'
- 'essentials:eec'
- 'tpaccept'
- 'etpaccept'
- 'tpyes'
- 'etpyes'
- 'essentials:tpaccept'
- 'essentials:etpaccept'
- 'essentials:tpyes'
- 'essentials:etpyes'
- 'tpahere'
- 'etpahere'
- 'essentials:tpahere'
- 'essentials:etpahere'
- 'back'
- 'eback'
- 'return'
- 'ereturn'
- 'essentials:back'
- 'essentials:eback'
- 'essentials:return'
- 'essentials:ereturn'
- 'sethome'
- 'esethome'
- 'createhome'
- 'ecreatehome'
- 'essentials:sethome'
- 'essentials:esethome'
- 'essentials:createhome'
- 'essentials:ecreatehome'
- 'spawn'
- 'espawn'
- 'essentials:spawn'
- 'essentials:espawn'
- 'vault'
- 'chest'
- 'pv'
- 'playervaults'
- 'playervaults:vault'
- 'playervaults:chest'
- 'playervaults:pv'
- 'playervaults:playervaults'
# Determines whether a victory title will be sent upon winning a bet.
enable-victory-title: true
queue:
# List of commands to block while in a queue.
blacklisted-commands: []
blacklisted-commands: [hbjoin, splegg, spleef, spectate]
rating:
@@ -409,7 +427,7 @@ spectate:
# If set to 'true', players will be in spectator gamemode while spectating.
# default: false
use-spectator-gamemode: false
use-spectator-gamemode: true
# If set to 'true', players spectating will receive invisibility effect.
# NOTE: This option will not take effect if use-spectator-gamemode is set to true.
@@ -443,21 +461,21 @@ countdown:
# %kit% - Name of the kit used in this match. If players are using their own inventory, it will display 'none'
# %arena% - Name of the arena used for this match.
messages:
- '&7Starting in &f5 &7seconds!'
- '&7Starting in &f4 &7seconds!'
- '&7Starting in &f3 &7seconds!'
- '&7Starting in &f2 &7seconds!'
- '&7Starting in &f1 &7second!'
- '&7Now in a match against &f%opponent%&7(&a%opponent_rating%&7) with kit &3%kit% &7in arena &e%arena%&7.'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3with %opponent% starting in &55 &3seconds...'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3with %opponent% starting in &d4 &3seconds...'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3with %opponent% starting in &c3 &3seconds...'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7]&cDuel &3with %opponent% starting in &e2 &3seconds...'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3with %opponent% starting in &a1 &3second...'
- '&aNow in a match against &4%opponent% &7(&e%opponent_rating% ELO&7) &awith kit &d%kit% &ain arena &e%arena%&a!'
# Titles to display along with the countdown. Must have the same size as the countdown list size.
titles:
- '&f&l5'
- '&f&l4'
- '&e&l3'
- '&6&l2'
- '&c&l1'
- '&a&lGO!'
- '&5&l5'
- '&d&l4'
- '&c&l3'
- '&e&l2'
- '&a&l1'
- '&B&lDUEL!'
prevent:
# If set to 'true', movements will be cancelled while the countdown is ongoing.
@@ -491,7 +509,7 @@ stats:
# Max amount of matches to display & store in the userdata file.
# default: 5
matches-to-display: 5
matches-to-display: 2000
top:
@@ -509,10 +527,10 @@ top:
identifier: 'losses'
kit:
type: '%kit%'
identifier: 'rating'
identifier: 'kit'
no-kit:
type: 'Own Inventory'
identifier: 'rating'
identifier: 'inventory'
guis:
@@ -520,7 +538,7 @@ guis:
# Amount of rows to display in one page of the kit selector GUI.
# NOTE: Must be between 1 - 5!
# default: 2
rows: 2
rows: 1
# Item used to fill empty spaces in the kit selector GUI.
space-filler-item:
@@ -530,7 +548,7 @@ guis:
# Amount of rows to display in one page of the arena selector GUI.
# NOTE: Must be between 1 - 5!
# default: 3
rows: 3
rows: 2
# Item used to fill empty spaces in the arena selector GUI.
space-filler-item:
@@ -583,33 +601,33 @@ sounds:
pitch: 0.95
volume: 1.0
trigger-messages:
- '&7Starting in &f5 &7seconds!'
- '&7Starting in &f4 &7seconds!'
- '&7Starting in &f3 &7seconds!'
- '&7Starting in &f2 &7seconds!'
- '&7Starting in &f1 &7second!'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3Starting in &55 &3seconds!'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3Starting in &d4 &3seconds!'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3Starting in &c3 &3seconds!'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3Starting in &e2 &3seconds!'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3Starting in &a1 &3seconds!'
# Remove this sound if your server version is 1.8!
countdown-ongoing-sound-1-9:
type: BLOCK_NOTE_PLING
pitch: 0.95
volume: 1.0
trigger-messages:
- '&7Starting in &f5 &7seconds!'
- '&7Starting in &f4 &7seconds!'
- '&7Starting in &f3 &7seconds!'
- '&7Starting in &f2 &7seconds!'
- '&7Starting in &f1 &7second!'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3Starting in &55 &3seconds!'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3Starting in &d4 &3seconds!'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3Starting in &c3 &3seconds!'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3Starting in &e2 &3seconds!'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cDuel &3Starting in &a1 &3seconds!'
# Remove this sound if your server version is above 1.8!
countdown-end-sound-1-8:
type: NOTE_PIANO
pitch: 1.9
volume: 1.0
trigger-messages:
- '&7Now in a match against &f%opponent%&7(&a%opponent_rating%&7) with kit &3%kit% &7in arena &e%arena%&7.'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &6Now in a match against &4%opponent% &6with kit &3%kit% &6in arena &a%arena%&6!'
# Remove this sound if your server version is 1.8!
countdown-end-sound-1-9:
type: BLOCK_NOTE_PLING
pitch: 1.9
volume: 1.0
trigger-messages:
- '&7Now in a match against &f%opponent%&7(&a%opponent_rating%&7) with kit &3%kit% &7in arena &e%arena%&7.'
- '&7[&a&lTrue&c&lOG &e&lNetwork&7] &6Now in a match against &4%opponent% &6with kit &3%kit% &6in arena &a%arena%&6!'
File diff suppressed because it is too large. Load diff
+96 -103
View File
@@ -4,10 +4,10 @@ config-version: 11
# Define placeholders usable in any message below.
# Example: Adding 'PREFIX: "[Cool]"' below and then putting '{PREFIX}' in a message will display '[Cool]' when the message is sent in game.
STRINGS:
PREFIX: '&9[Duels]'
LINE: '&9&m------------------------------------&r'
HALF_LINE: '&9&m----------------&r'
FAIL_PREFIX: '&cFailed to start the match:'
PREFIX: '&7[&cDuels&f-&4OG&7]'
LINE: '&B&m---------------&7[&a&lTrue&c&lOG &e&lNetwork&7] &7[&cDuels&7]&B---------------&r'
HALF_LINE: '&B&m--------------------&r'
FAIL_PREFIX: '&7[&a&lTrue&c&lOG &e&lNetwork&7] &cERROR! Failed to start the match:'
GENERAL:
@@ -25,7 +25,7 @@ GENERAL:
ERROR:
no-permission: '{PREFIX} &cNope! You are lacking the following permission: ''%permission%'''
no-permission: '{PREFIX} &cYou are lacking the following permission: ''%permission%'''
data:
load-failure: '{PREFIX} &cCould not load your duel stats. Please try re-logging.'
not-loaded: '{PREFIX} &cUsers are still under load, please try again later.'
@@ -41,7 +41,6 @@ ERROR:
delete-failure: '{PREFIX} &cCannot delete an arena that is currently in use. Please disable it first using the command ''/duels toggle %name%'''
invalid-position: '{PREFIX} &cPosition must be 1 or 2.'
no-position-set: '{PREFIX} &cArena ''%name%'' have no positions set.'
world-not-whitelisted: '{PREFIX} &cArena positions cannot be set in this world.'
kit:
not-found: '{PREFIX} &cNo kit exists with the name ''%name%''.'
already-exists: '{PREFIX} &cA kit named ''%name%'' already exists.'
@@ -75,11 +74,11 @@ ERROR:
not-a-uuid: '{PREFIX} &c%input% is not a valid UUID.'
not-found: '{PREFIX} &cNo inventory exists with the UUID ''%uuid%''.'
queue:
not-found: '{PREFIX} &cNo queue exists with kit %kit% and bet $%bet_amount%.'
already-exists: '{PREFIX} &cA queue with kit ''%kit%'' and bet $%bet_amount% already exists.'
not-found: '{PREFIX} &cNo queue exists with kit &d%kit% and a bet of &B%bet_amount% Diamond(s)&c.'
already-exists: '{PREFIX} &cA queue with kit &d''%kit%'' and a bet of &B%bet_amount% Diamond(s) &calready exists.'
already-in: '{PREFIX} &cYou are already in a queue!'
not-in-queue: '{PREFIX} &cYou are not in a queue.'
not-enough-money: '{PREFIX} &cYou need $%bet_amount% to join that queue.'
not-enough-money: '{PREFIX} &cYou''ll need &B%bet_amount% Diamond(s) &c to join that queue.'
no-queues-available: '{PREFIX} &cNo queues are available.'
sign:
not-a-sign: '{PREFIX} &cThe block you are looking at is not a sign!'
@@ -112,21 +111,17 @@ COMMAND:
send:
sender:
- '{LINE}'
- '&7Duel request sent to &f%name%&7.'
- '&6- &7Kit: &3%kit%'
- '&7Own Inventory: &r%own_inventory%'
- '&7Duel request sent to &4%name%&7.'
- '&6- &7Kit: &d%kit%'
- '&6- &7Arena: &e%arena%'
- '&6- &7Bet: &6$%bet_amount%'
- '&6- &7Item Betting: &r%item_betting%'
- '&6- &7Bet: &B%bet_amount% Diamond(s)'
- '{LINE}'
receiver:
- '{LINE}'
- '&7Duel request received from &f%name%&7.'
- '&6- &7Kit: &3%kit%'
- '&7Own Inventory: &r%own_inventory%'
- '&7Duel request received from &4%name%&7.'
- '&6- &7Kit: &d%kit%'
- '&6- &7Arena: &e%arena%'
- '&6- &7Bet: &6$%bet_amount%'
- '&6- &7Item Betting: &r%item_betting%'
- '&6- &7Bet: &B%bet_amount% Diamond(s)'
clickable-text:
info:
text: '&7Click to '
@@ -141,33 +136,33 @@ COMMAND:
text: '{LINE}'
hover-text: ''
accept:
sender: '{PREFIX} &f%name% &7has accepted your duel request.'
receiver: '{PREFIX} &7Accepted the duel request from &f%name%&7.'
sender: '{PREFIX} &f%name% &ahas accepted your duel request.'
receiver: '{PREFIX} &aAccepted the duel request from &f%name%&a.'
deny:
sender: '{PREFIX} &7Your duel request to &f%name% &7was denied.'
receiver: '{PREFIX} &7Denied the duel request from &f%name%&7.'
sender: '{PREFIX} &cYour duel request to &4%name% &cwas denied.'
receiver: '{PREFIX} &cDenied the duel request from &4%name%&c.'
stats:
displayed:
- '{LINE}'
- '&7Stats of &f%name% &e-'
- '&7Wins: &a%wins%'
- '&7Losses: &c%losses%'
- '&7W/L Ratio: &b%wl_ratio%'
- '&7Requests: &r%requests_enabled%'
- '&3 Duel Stats of %name% &e-'
- '&2Wins: &a%wins%'
- '&4Losses: &c%losses%'
- '&6W/L Ratio: &b%wl_ratio%'
- '&7Requests: &2%requests_enabled%'
# NOTE: Ratings will only display if either 'display-kit-ratings' or 'display-nokit-rating' is enabled in the configuration.
rating:
header: '&7Ratings &e-'
format: '&f%type%&7: &b%rating%'
format: '&3%type%&7: &b%rating%'
footer: ''
# NOTE: Past matches will only display if 'display-past-matches' is enabled in the configuration.
match:
header: '&7Recent Matches &e-'
format: '&a%winner% &fvs &c%loser% &6[Hover Me!]'
hover-text:
- '&7Kit: &3%kit%'
- '&7Kit: &d%kit%'
- '&7Duration: &a%duration%'
- '&7Time: &f%time% ago'
- '&7Health: &d%health%❤'
- '&7Time: &2%time%'
- '&7Hearts: &c%health% ❤'
footer: '{LINE}'
toggle:
enabled: '{PREFIX} &aYou are now receiving duel requests.'
@@ -191,7 +186,7 @@ COMMAND:
- '{LINE}'
help:
arena:
- '{HALF_LINE} &fArena Commands {HALF_LINE}'
- '{HALF_LINE} &3Arena Commands {HALF_LINE}'
- '&f/%command% create [name] &e- &7Creates an arena with given name.'
- '&f/%command% set [name] [1|2] &e- &7Sets the teleport position of an arena.'
- '&f/%command% delete [name] &e- &7Deletes an arena.'
@@ -199,9 +194,9 @@ COMMAND:
- '&f/%command% toggle [name] &e- &7Enables or disables an arena.'
- '&f/%command% tp [name] <1|2> &e- &7Teleports to an arena.'
- '&f/%command% list &e- &7Displays the list of all arenas.'
- '{HALF_LINE} &fArena Commands {HALF_LINE}'
- '{HALF_LINE} &3Arena Commands {HALF_LINE}'
kit:
- '{HALF_LINE} &fKit Commands {HALF_LINE}'
- '{HALF_LINE} &6Kit Commands {HALF_LINE}'
- '&f/%command% savekit <-o> [name] &e- &7Saves a kit with given name.'
- '&f/%command% loadkit [name] &e- &7Loads the selected kit to your inventory.'
- '&f/%command% deletekit [name] &e- &7Deletes a kit.'
@@ -209,59 +204,59 @@ COMMAND:
- '&f/%command% options [kit] &e- &7Opens the options gui for selected kit.'
- '&f/%command% bind [kit] &e- &7Opens the arena bind gui for selected kit.'
- '&f/%command% list &e- &7Displays the list of all kits.'
- '{HALF_LINE} &fKit Commands {HALF_LINE}'
- '{HALF_LINE} &6Kit Commands {HALF_LINE}'
queue:
- '{HALF_LINE} &fQueue Sign Commands {HALF_LINE}'
- '{HALF_LINE} &dQueue Sign Commands {HALF_LINE}'
- '&f/%command% createqueue [bet] [-|kit] &e- &7Creates a queue with bet and kit.'
- '&f/%command% deletequeue &e- &7Deletes the queue with bet and kit.'
- '&f/%command% list &e- &7Displays a list of available queues.'
- '{HALF_LINE} &fQueue Sign Commands {HALF_LINE}'
- '{HALF_LINE} &dQueue Sign Commands {HALF_LINE}'
sign:
- '{HALF_LINE} &fQueue Sign Commands {HALF_LINE}'
- '{HALF_LINE} &6Queue Sign Commands {HALF_LINE}'
- '&f/%command% addsign [bet] [-|kit] &e- &7Creates a queue sign with bet and kit.'
- '&f/%command% delsign &e- &7Deletes the queue sign you are looking at.'
- '&f/%command% list &e- &7Displays a list of queue signs.'
- '{HALF_LINE} &fQueue Sign Commands {HALF_LINE}'
- '{HALF_LINE} &6Queue Sign Commands {HALF_LINE}'
user:
- '{HALF_LINE} &fUser Edit Commands {HALF_LINE}'
- '{HALF_LINE} &eUser Edit Commands {HALF_LINE}'
- '&f/%command% setrating [name] [-|kit] [amount] &e- &7Sets player''s rating for kit.'
- '&f/%command% edit [name] [add|remove|set] [wins|losses] [amount] &e- &7Edits player''s stats.'
- '&f/%command% resetrating [name] [-|kit|all] &e- &7Resets all or specified kit''s rating for player.'
- '&f/%command% reset [name] &e- &7Resets player''s stats.'
- '{HALF_LINE} &fUser Edit Commands {HALF_LINE}'
- '{HALF_LINE} &eUser Edit Commands {HALF_LINE}'
extra:
- '{HALF_LINE} &fExtra Commands {HALF_LINE}'
- '{HALF_LINE} &aExtra Commands {HALF_LINE}'
- '&f/%command% setlobby &e- &7Sets duel lobby location.'
- '&f/%command% lobby &e- &7Teleports to duel lobby.'
- '&f/%command% playsound [name] &e- &7Plays the selected sound if defined in config.'
- '&f/%command% reload <module> &e- &7Reloads the plugin or the specified module.'
- '{HALF_LINE} &fExtra Commands {HALF_LINE}'
create: '{PREFIX} &7Arena &e%name% &7was successfully created. To set spawnpoints for this arena, use the command &f/duels set %name% 1'
- '{HALF_LINE} &aExtra Commands {HALF_LINE}'
create: '{PREFIX} &7Arena &e%name% &7was successfully created. To set spawnpoints for this arena, use the command &e/duels set %name% 1'
delete: '{PREFIX} &7Arena &e%name% &7was successfully removed.'
set: '{PREFIX} &7Set position &f%position% &7for arena &e%name% &7at &f%location%&7.'
set: '{PREFIX} &7Set position &r%position% &7for arena &e%name% &7at &3%location%&7.'
toggle: '{PREFIX} &7Arena &e%name% &7is now &r%state%&7.'
teleport: '{PREFIX} &7You have been teleported to arena &e%name%&7''s position &f%position%&7.'
teleport: '{PREFIX} &7You have been teleported to arena &2%name%&7''s position &f%position%&7.'
save-kit: '{PREFIX} &7Kit &3%name% &7was successfully saved.'
delete-kit: '{PREFIX} &7Kit &3%name% &7was successfully removed.'
load-kit: '{PREFIX} &7Kit &3%name% &7was loaded in your inventory.'
set-item: '{PREFIX} &7Kit &3%name%&7''s displayed item was changed to your held item.'
create-queue: '{PREFIX} &7Created a queue with kit &3%kit% &7and bet &6$%bet_amount%&7.'
delete-queue: '{PREFIX} &7Deleted a queue with kit &3%kit% &7and bet &6$%bet_amount%&7.'
add-sign: '{PREFIX} &7Created queue sign at &f%location% &7with kit &3%kit% &7and bet &6$%bet_amount%&7.'
del-sign: '{PREFIX} &7Deleted queue sign at &f%location% &7with kit &3%kit% &7and bet &6$%bet_amount%&7.'
create-queue: '{PREFIX} &7Created a queue with kit &d%kit% &7and a bet of &B%bet_amount% Diamond(s) &7.'
delete-queue: '{PREFIX} &7Deleted a queue with kit &d%kit% &7and a bet of &B%bet_amount% Diamond(s) &7.'
add-sign: '{PREFIX} &7Created queue sign at &3%location% &7with kit &d%kit% &7and bet &B%bet_amount% Diamond(s)&7.'
del-sign: '{PREFIX} &7Deleted queue sign at &3%location% &7with kit &d%kit% &7and bet &B%bet_amount Diamond(s)%&7.'
set-lobby: '{PREFIX} &7Duel lobby set at your current location.'
lobby: '{PREFIX} &7You have been teleported to lobby!'
edit: '{PREFIX} &7Following action has been executed for &f%name%&7: &f%action% %amount% %type%'
set-rating: '{PREFIX} &f%name%&7''s rating for kit &3%kit% &7was set to &a%rating%&7.'
reset-rating: '{PREFIX} &7Reset &f%name%&7''s rating for kit &3%kit%&7.'
reset: '{PREFIX} &7Reset &f%name%&7''s stats.'
edit: '{PREFIX} &7Following action has been executed for &6%name%&7: &6%action% %amount% %type%'
set-rating: '{PREFIX} &6%name%&7''s rating for kit &d%kit% &7was set to &a%rating%&7.'
reset-rating: '{PREFIX} &7Reset &6%name%&7''s &7rating for kit &d%kit%&7.'
reset: '{PREFIX} &7Reset &6%name%&7''s &7stats.'
info:
- '{HALF_LINE} &7Arena &e%name% {HALF_LINE}'
- '&7In Use: &r%in_use%'
- '&7Disabled: &r%disabled%'
- '&7Bound Kits: &3%kits%'
- '&7Positions: &f%positions%'
- '&7Players: &f%players%'
- '&7In Use: &a%in_use%'
- '&7Disabled: &4%disabled%'
- '&7Bound Kits: &d%kits%'
- '&7Positions: &r%positions%'
- '&7Players: &a%players%'
- '{HALF_LINE} &7Arena &e%name% {HALF_LINE}'
list:
- '{LINE}'
@@ -269,11 +264,11 @@ COMMAND:
- '&9BLUE&7: Arena without spawn positions set'
- '&aGREEN&7: Available arena'
- '&cRED&7: Arena in use'
- '&7Arenas: &r%arenas%'
- '&7Kits: &f%kits%'
- '&7Arenas: &3%arenas%'
- '&7Kits: &9%kits%'
- '&7Queues: &b%queues%'
- '&7Queue Signs: &f%queue_signs%'
- '&7Duel lobby is located at &f%lobby%&7.'
- '&7Queue Signs: &d%queue_signs%'
- '&7Duel lobby is located at &e%lobby%&7.'
- '{LINE}'
spectate:
@@ -299,42 +294,42 @@ DUEL:
no-arena-available: '{FAIL_PREFIX} No arenas are currently available. Please try again later.'
arena-in-use: '{FAIL_PREFIX} That arena is already in use. Please select a different arena.'
arena-not-applicable: '{FAIL_PREFIX} You cannot use kit %kit% on this arena.'
not-enough-money: '{FAIL_PREFIX} You or your opponent does not have $%bet_amount%.'
not-enough-money: '{FAIL_PREFIX} &cYou or your opponent does not have &B%bet_amount% Diamond(s)&c.'
prevent:
item-drop: '&cYou cannot drop items while in a duel.'
command: '&cYou cannot use ''%command%'' while in a duel.'
teleportation: '&cYou cannot teleport while in a duel.'
inventory-open: '&cYou cannot open inventories while in a duel.'
projectile-hit-message: '{PREFIX} &f%name% &7is now at &d%health%❤&7!'
projectile-hit-message: '&7{PREFIX} &4%name% &7is now at &c%health% ❤&7!'
on-end:
tie: '{PREFIX} &7Tie Game!'
plugin-disable: '{PREFIX} &cPlugin is disabling! Ending match automatically.'
opponent-defeat: '{PREFIX} &f%winner% &a(%winner_rating%) (+%change%) &7has defeated &f%loser% &c(%loser_rating%) (-%change%) &7on kit &3%kit% &7with &d%health%❤'
opponent-defeat: '{PREFIX} &f%winner% &a(%winner_rating%) (+%change%) &7has defeated &f%loser% &c(%loser_rating%) (-%change%) &7on kit &d%kit% &7with &c%health% ❤'
inventories:
message: '&7Inventories (click on the name to view): '
name-color: '&b'
reward:
money:
message: '{PREFIX} &7You have received &6$%money% &7for winning against &f%name%&7!'
title: '&eYOU WON &6$%money%&e!'
message: '{PREFIX} &7You have received &B%money% Diamond(s) &7for winning your duel against &4%name%&7!'
title: '&BYOU WON %money% Diamond(s)!'
items:
message: '{PREFIX} &7You have received &f%name%&7''s items for winning!'
message: '{PREFIX} &7You have received &4%name%&7''s items for winning your duel against them!'
QUEUE:
prevent:
command: '&cYou cannot use ''%command%'' while in a queue.'
add: '{PREFIX} &7You have been added to the queue for kit &3%kit% &7and bet &6$%bet_amount%&7. Click the sign again or type &f/queue leave &7to leave the queue.'
add: '{PREFIX} &dYou have been added to the queue for kit &d%kit% &dand bet of &B%bet_amount% Diamond(s)&d. Click the sign again or type &e/queue leave &dto leave the queue.'
remove: '{PREFIX} &7You have been removed from the queue.'
found-opponent: '{PREFIX} &7Opponent found: &f%name%&7! Starting match with kit &3%kit% &7and a bet of &6$%bet_amount%&7...'
found-opponent: '{PREFIX} &6Opponent found: &4%name%&6! Starting match with kit &d%kit% &6and a bet of &B%bet_amount% Diamond(s)&6...'
SIGN:
format:
- '&a[Click to Join]'
- '&3%kit%&f:&e$%bet_amount%'
- '&f&l%in_queue% IN QUEUE'
- '&f&l%in_match% IN MATCH'
- '&a[Click to Duel]'
- '&d%kit%&r:&B%bet_amount% Diamond(s)'
- '&e&l%in_queue% IN QUEUE'
- '&2&l%in_match% IN MATCH'
SPECTATE:
@@ -352,20 +347,18 @@ GUI:
details:
name: '&9Request Details'
lore:
- '&7Opponent: &f%opponent%'
- '&7Kit: &3%kit%'
- '&7Own Inventory: &r%own_inventory%'
- '&7Opponent: &4%opponent%'
- '&7Kit: &d%kit%'
- '&7Arena: &e%arena%'
- '&7Bet Items: &r%item_betting%'
- '&7Bet: &6$%bet_amount%'
- '&7Bet: &B%bet_amount% Diamond(s)'
- ' '
- '&7To change the bet'
- '&7amount, please type'
- '&b/duel %opponent% [amount]'
- '&7amount, type:'
- '&e/duel &f%opponent% &B[amount]'
kit-selector:
name: '&9Kit Selection'
name: '&2Kit Selection'
lore:
- '&7Selected Kit: &3%kit%'
- '&7Selected Kit: &d%kit%'
- ' '
- '&aClick to Change Kit!'
lore-no-permission:
@@ -390,9 +383,9 @@ GUI:
- '&cYou do not have permission to'
- '&cuse this option.'
item-betting:
name: '&9Allow Betting Items'
name: '&BAllow Betting Items'
lore:
- '&7Item Betting: &r%item_betting%'
- '&7Item Betting: &B%item_betting%'
- ' '
- '&aClick to Toggle Item Betting!'
lore-no-permission:
@@ -403,23 +396,23 @@ GUI:
cancel:
name: '&c&lCANCEL'
kit-selector:
title: 'Kit Selection'
title: '&dKit Selection'
buttons:
previous-page:
name: '&aPrevious Page'
name: '&6Previous Page'
next-page:
name: '&aNext Page'
empty:
name: '&cThis page is empty.'
name: '&2This page is empty.'
arena-selector:
title: 'Arena Selection'
title: '&eArena Selection'
buttons:
arena:
name: '&e%name%'
lore-available:
- '&aAvailable'
lore-unavailable:
- '&cUnavailable'
- '&4Unavailable'
previous-page:
name: '&aPrevious Page'
next-page:
@@ -430,11 +423,11 @@ GUI:
title: 'Available Queues'
buttons:
queue:
name: '&3%kit%'
name: '&d%kit%'
lore:
- '&7Bet: &6$%bet_amount%'
- '&7In Queue: &f%in_queue%'
- '&7In Match: &f%in_match%'
- '&7Bet: &B%bet_amount% Diamond(s)'
- '&7In Queue: &e%in_queue%'
- '&7In Match: &2%in_match%'
- ' '
- '&a&lClick to Queue!'
previous-page:
@@ -454,9 +447,9 @@ GUI:
details:
name: '&9Match Details'
lore:
- '&7Kit: &3%kit%'
- '&7Kit: &d%kit%'
- '&7Arena: &e%arena%'
- '&7Bet: &6$%bet_amount%'
- '&7Bet: &B%bet_amount% Diamond(s)'
cancel:
name: '&c&lCLICK TO CANCEL'
lore:
@@ -477,13 +470,13 @@ GUI:
health:
name: '&c%health% ❤'
options:
title: 'Kit: %kit%'
title: 'Kit: &3&l%kit%'
buttons:
option:
name: '&b%name%'
lore:
- ' '
- '&7Status: &r%state%'
- '&7Status: &3%state%'
- ' '
- '&r&lCLICK TO TOGGLE'
bind:
@@ -492,14 +485,14 @@ GUI:
arena:
name: '&e%arena%'
lore-bound:
- '&7Bound Kits: &3%kits%'
- '&7Bound Kits: &d%kits%'
- ' '
- '&a&lBOUND'
- ' '
- '&r&lCLICK TO TOGGLE'
lore-not-bound:
- '&7Bound Kits: &3%kits%'
- '&7Bound Kits: &d%kits%'
- ' '
- '&c&lNOT BOUND'
- ' '
- '&r&lCLICK TO TOGGLE'
- '&r&lCLICK TO TOGGLE'
@@ -0,0 +1,10 @@
[
{
"kit": "diamond",
"bet": 0
},
{
"kit": "leather",
"bet": 0
}
]
@@ -0,0 +1,26 @@
[
{
"location": {
"world": "world",
"x": -23.0,
"y": 59.0,
"z": -114.0,
"pitch": 0.0,
"yaw": 0.0
},
"kit": "diamond",
"bet": 0
},
{
"location": {
"world": "world",
"x": 51.0,
"y": 65.0,
"z": -203.0,
"pitch": 0.0,
"yaw": 0.0
},
"kit": "leather",
"bet": 0
}
]