From 798294070be1997cd19fbb46ec6541cf9deb3cc7 Mon Sep 17 00:00:00 2001 From: Zrips Date: Tue, 10 Jan 2017 18:59:59 +0200 Subject: [PATCH] Dont break after rewarding first job. Just in case... --- com/gamingmesh/jobs/Jobs.java | 1 - shopItems.yml | 218 +++++++++++++++++----------------- 2 files changed, 110 insertions(+), 109 deletions(-) diff --git a/com/gamingmesh/jobs/Jobs.java b/com/gamingmesh/jobs/Jobs.java index dbb31c47..9c5a1b4f 100644 --- a/com/gamingmesh/jobs/Jobs.java +++ b/com/gamingmesh/jobs/Jobs.java @@ -1002,7 +1002,6 @@ public class Jobs extends JavaPlugin { if (prog.addExperience(expAmount)) pManager.performLevelUp(jPlayer, prog.getJob(), oldLevel); - break; } } } diff --git a/shopItems.yml b/shopItems.yml index 47ce4a56..8fe6ae89 100644 --- a/shopItems.yml +++ b/shopItems.yml @@ -1,109 +1,111 @@ -Items: - SuperPickAxe: - # (REQUIRED) Item price in Jobs Points - Price: 10000.0 - Icon: - # (REQUIRED) Icon item id - Id: 278 - # (Optional - Default: 0) Icon item data value - Data: 0 - # (Optional - Default: 1) Icon item amount - Amount: 1 - # (Optional) Icon name. Supports usual color codes - Name: "&eBest pick axe ever!" - # (Optional) Icon lore. Supports usual color codes - Lore: - - "&6Efficiency V" - - "&6Unbreaking III" - - "&eAnd one tasty apple!" - # (Optional - default: false) Hides icon if player dont have permission to get this item - HideWithoutPermission: true - # (Optional) List of permissions required to buy this item - RequiredPermission: - - jobs.item.pickaxe - # (Optional) List of jobs and levels to buy this item - RequiredJobLevels: - - Miner-50 - - Woodcutter-10 - # (Optional) Performs comands on item purchase - # use 'msg ' at start of command to send nice message to player - # all other commands will be performed normaly as they would be executed from console - # use [player] variable to include buyers name - PerformCommands: - - "msg &eThanks for buying this super pick axe!" - # (Optional) Gives items by defined criteria - GiveItems: - # Can be any word - PickAxe: - # (Required) Item id - Id: 278 - # (Optional - Default: 0) Item data - Data: 0 - # (Optional - Default: 1) Item amount - Amount: 1 - # (Optional) Item name - Name: "&eSuper PickAxe" - # (Optional) Item lore - Lore: - - "&eUber pickAxe" - # (Optional) Item enchants - Enchants: - - DIG_SPEED=5 - - DURABILITY=3 - # Can be any word - Apple: - # (Required) Item id - Id: 260 - WoodenShovel: - Price: 100.0 - Icon: - Id: 269 - Name: "&eWooden shovel" - HideWithoutPermission: true - RequiredPermission: - - jobs.item.shovel - RequiredJobLevels: - - Digger-5 - PerformCommands: - - "msg &eThanks [player] for buying this shovel!" - - "give [player] 269 1" - LureEnchantBook: - Price: 100.0 - Icon: - Id: 403 - Name: "&eEnchant book" - Lore: - - "&eContains Lure 3 enchant" - HideWithoutPermission: true - RequiredPermission: - - jobs.item.LureBook - RequiredJobLevels: - - Fisherman-100 - PerformCommands: - - "msg &eThanks [player] for buying this book!" - # (Optional) Gives items by defined criteria - GiveItems: - # Can be any word - Book: - # (Required) Item id - Id: 403 - # (Optional) Item enchants - Enchants: - - LURE=3 - Elytra: - Price: 100000.0 - Icon: - Id: 443 - Name: "&eAngel wings" - HideWithoutPermission: true - RequiredPermission: - - jobs.item.elytra - PerformCommands: - - "msg &eThanks [player] for buying Angel Wings!" - # (Optional) Gives items by defined criteria - GiveItems: - # Can be any word - Elytra: - # (Required) Item id - Id: 443 +Items: + SuperPickAxe: + # (REQUIRED) Item price in Jobs Points + Price: 10000.0 + Icon: + # (REQUIRED) Icon item id + Id: 278 + # (Optional - Default: 0) Icon item data value + Data: 0 + # (Optional - Default: 1) Icon item amount + Amount: 1 + # (Optional) Icon name. Supports usual color codes + Name: "&eBest pick axe ever!" + # (Optional) Icon lore. Supports usual color codes + Lore: + - "&6Efficiency V" + - "&6Unbreaking III" + - "&eAnd one tasty apple!" + # (Optional - default: false) Hides icon if player dont have permission to get this item + HideWithoutPermission: true + # (Optional) List of permissions required to buy this item + RequiredPermission: + - jobs.item.pickaxe + # (Optional) List of jobs and levels to buy this item + RequiredJobLevels: + - Miner-50 + - Woodcutter-10 + # (Optional) Total level from all jobs player currently in + RequiredTotalLevels: 100 + # (Optional) Performs comands on item purchase + # use 'msg ' at start of command to send nice message to player + # all other commands will be performed normaly as they would be executed from console + # use [player] variable to include buyers name + PerformCommands: + - "msg &eThanks for buying this super pick axe!" + # (Optional) Gives items by defined criteria + GiveItems: + # Can be any word + PickAxe: + # (Required) Item id + Id: 278 + # (Optional - Default: 0) Item data + Data: 0 + # (Optional - Default: 1) Item amount + Amount: 1 + # (Optional) Item name + Name: "&eSuper PickAxe" + # (Optional) Item lore + Lore: + - "&eUber pickAxe" + # (Optional) Item enchants + Enchants: + - DIG_SPEED=5 + - DURABILITY=3 + # Can be any word + Apple: + # (Required) Item id + Id: 260 + WoodenShovel: + Price: 100.0 + Icon: + Id: 269 + Name: "&eWooden shovel" + HideWithoutPermission: true + RequiredPermission: + - jobs.item.shovel + RequiredJobLevels: + - Digger-5 + PerformCommands: + - "msg &eThanks [player] for buying this shovel!" + - "give [player] 269 1" + LureEnchantBook: + Price: 100.0 + Icon: + Id: 403 + Name: "&eEnchant book" + Lore: + - "&eContains Lure 3 enchant" + HideWithoutPermission: true + RequiredPermission: + - jobs.item.LureBook + RequiredJobLevels: + - Fisherman-100 + PerformCommands: + - "msg &eThanks [player] for buying this book!" + # (Optional) Gives items by defined criteria + GiveItems: + # Can be any word + Book: + # (Required) Item id + Id: 403 + # (Optional) Item enchants + Enchants: + - LURE=3 + Elytra: + Price: 100000.0 + Icon: + Id: 443 + Name: "&eAngel wings" + HideWithoutPermission: true + RequiredPermission: + - jobs.item.elytra + PerformCommands: + - "msg &eThanks [player] for buying Angel Wings!" + # (Optional) Gives items by defined criteria + GiveItems: + # Can be any word + Elytra: + # (Required) Item id + Id: 443 \ No newline at end of file