From 7a03682b65b16317f29b2b42a59abd3a77170b7a Mon Sep 17 00:00:00 2001 From: Zrips Date: Sat, 28 Sep 2024 11:57:50 +0300 Subject: [PATCH] Missing example job condition section --- .../java/com/gamingmesh/jobs/config/ConfigManager.java | 9 +++------ src/main/resources/jobs/_EXAMPLE.yml | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/config/ConfigManager.java b/src/main/java/com/gamingmesh/jobs/config/ConfigManager.java index 26642062..bb534ddb 100644 --- a/src/main/java/com/gamingmesh/jobs/config/ConfigManager.java +++ b/src/main/java/com/gamingmesh/jobs/config/ConfigManager.java @@ -104,7 +104,7 @@ public class ConfigManager { cfg.header(Arrays.asList("Jobs configuration.", "", "Edited by roracle to include 1.13 items and item names, prepping for 1.14 as well.", "", - "Stores information about each job.", + "Stores information about each job", "", "NOTE: When having multiple jobs, both jobs will give the income payout to the player", "even if they give the pay for one action (make the configurations with this in mind)", @@ -440,13 +440,10 @@ public class ConfigManager { cfg.addComment(pt + ".conditions", "Permissions granted when particular conditions are met"); cfg.addComment(pt + ".conditions.first", "Condition name, irrelevant, you can write anything in here"); - - cfg.addComment(pt + ".conditions.first.requires", "j marks that player should have particular jobs level and higher", "p marks permission requirement"); - cfg.get(pt + ".permissions.first.requires", Arrays.asList("j:Miner-50", "j:Digger-50")); cfg.addComment(pt + ".conditions.first.requires", "j marks that player should have particular jobs level and higher"); - cfg.get(pt + ".permissions.first.requires", Arrays.asList("j:Miner-50", "j:Digger-50", "p:essentials.notnoob")); + cfg.get(pt + ".conditions.first.requires", Arrays.asList("j:Miner-50", "j:Digger-50", "p:essentials.notnoob")); cfg.addComment(pt + ".conditions.first.perform", "p marks permission, player will get if given true value, if used false, permission will be taken"); - cfg.get(pt + ".permissions.first.perform", Arrays.asList("p:essentials.fly-true")); + cfg.get(pt + ".conditions.first.perform", Arrays.asList("p:essentials.fly-true")); cfg.addComment(pt + ".commands", "Commands executed when player reached level"); cfg.addComment(pt + ".commands.fly", "command name, just to have better idea what this do"); diff --git a/src/main/resources/jobs/_EXAMPLE.yml b/src/main/resources/jobs/_EXAMPLE.yml index a9b7f485..54774ea2 100644 --- a/src/main/resources/jobs/_EXAMPLE.yml +++ b/src/main/resources/jobs/_EXAMPLE.yml @@ -128,8 +128,8 @@ exampleJob: # - This is defined in same way as any generic payable job action. # - You can use multiple names separated by commas "," to avoid creating many rows. # [amount] is how many times player should perform this action to complete quest - - Break;oak_log;300 - - Place;stone,cobblestone;5 + - "Break;oak_log;300" + - "Place;stone,cobblestone;5" # Command list to be performed after quest is finished. # Use [playerName] to insert players name who finished that quest