options: gui_name: &8» &cItemshop vip_gui_name: &8» &6Vip svip_gui_name: &8» &eSVip sponsor_gui_name: &8» &9Sponsor elita_gui_name: &8» &5&Elita cash_gui_name: &8» &6Ca$h tarcza_gui_name: &8» &bTarcza Ochronna brush1_gui_name: &6&lBrush &7(Poziom I) brush2_gui_name: &6&lBrush &7(Poziom II) brush3_gui_name: &6&lBrush &7(Poziom II) gui_lore: %nl%&8» &aKliknij, aby odebrać zakupiony przedmiot %nl%&8» &dPamiętaj mieć wolne miejsce w ekwipunku w przypadku przedmiotu! opis: &7» &6Magiczny przedmiot! opis2: &7» &6Za pomocą jego kopiesz więcej! opis3: &9+ Wiecej kasy opis4: &9+ Szybsze kopanie opis5: &9+ Większy drop kasy command /is []: trigger: open chest inventory with 1 rows named "{@gui_name}" to player set {_slot} to 0 loop {itemshop::list::%player%::*}: if loop-value is "vip": set {_item} to paper set {_name} to "{@vip_gui_name}" if loop-value is "svip": set {_item} to paper set {_name} to "{@svip_gui_name}" if loop-value is "elita": set {_item} to paper set {_name} to "{@elita_gui_name}" if loop-value is "sponsor": set {_item} to paper set {_name} to "{@sponsor_gui_name}" if loop-value is "cash": set {_item} to paper set {_name} to "{@cash_gui_name}" if loop-value is "tarcza": set {_item} to feather set {_name} to "{@tarcza_gui_name}" if loop-value is "brush1": set {_item} to blaze rod set {_name} to "{@brush1_gui_name}" if loop-value is "brush2": set {_item} to blaze rod set {_name} to "{@brush2_gui_name}" if loop-value is "brush3": set {_item} to blaze rod set {_name} to "{@brush3_gui_name}" command /isnadaj [] []: permission: isnadaj.usage permission message: &8» &cNie masz dostępu do tej komendy! trigger: if arg-1 is not set: send "&8» &cPodaj usługę!" stop if arg-2 is not set: send "&8» &cPodaj nick!" stop if arg-1 is not "vip" or "svip" or "sponsor" or "elita" or "cash" or "tarcza" or "brush1" or "brush2" or "brush3": send "&8» &cBłędna usługa!" stop if arg-1 is "vip": set {_p} to arg-2 parsed as offlineplayer add "vip" to {itemshop::list::%arg-2%::*} send "&8» &aDodałeś usługę %arg-1% graczowi %arg-2%" stop if arg-1 is "svip": set {_p} to arg-2 parsed as offlineplayer add "svip" to {itemshop::list::%arg-2%::*} send "&8» &aDodałeś usługę %arg-1% graczowi %arg-2%" stop if arg-1 is "sponsor": set {_p} to arg-2 parsed as offlineplayer add "sponsor" to {itemshop::list::%arg-2%::*} send "&8» &aDodałeś usługę %arg-1% graczowi %arg-2%" stop if arg-1 is "elita": set {_p} to arg-2 parsed as offlineplayer add "elita" to {itemshop::list::%arg-2%::*} send "&8» &aDodałeś usługę %arg-1% graczowi %arg-2%" stop if arg-1 is "cash": set {_p} to arg-2 parsed as offlineplayer add "cash" to {itemshop::list::%arg-2%::*} send "&8» &aDodałeś usługę %arg-1% graczowi %arg-2%" stop if arg-1 is "tarcza": set {_p} to arg-2 parsed as offlineplayer add "tarcza" to {itemshop::list::%arg-2%::*} send "&8» &aDodałeś usługę %arg-1% graczowi %arg-2%" stop if arg-1 is "brush1": set {_p} to arg-2 parsed as offlineplayer add "brush1" to {itemshop::list::%arg-2%::*} send "&8» &aDodałeś usługę %arg-1% graczowi %arg-2%" stop if arg-1 is "brush2": set {_p} to arg-2 parsed as offlineplayer add "brush2" to {itemshop::list::%arg-2%::*} send "&8» &aDodałeś usługę %arg-1% graczowi %arg-2%" stop if arg-1 is "brush3": set {_p} to arg-2 parsed as offlineplayer add "brush3" to {itemshop::list::%arg-2%::*} send "&8» &aDodałeś usługę %arg-1% graczowi %arg-2%" stop on inventory click: if name of player's current inventory is "{@gui_name}": if clicked inventory is not player's inventory: cancel event if clicked slot is not air: if name of clicked slot is "{@vip_gui_name}": close player's inventory remove "vip" from {itemshop::list::%player%::*} execute console command "lp user %player% addtemp vip 30d" send "&8» &aOdebrałeś rangę VIP!" stop if name of clicked slot is "{@svip_gui_name}": close player's inventory remove "svip" from {itemshop::list::%player%::*} execute console command "lp user %player% addtemp svip 30d" send "&8» &aOdebrałeś rangę SVIP!" stop if name of clicked slot is "{@sponsor_gui_name}": close player's inventory remove "sponsor" from {itemshop::list::%player%::*} execute console command "lp user %player% addtemp sponsor 30d" send "&8» &aOdebrałeś rangę SPONSOR!" stop if name of clicked slot is "{@elita_gui_name}": close player's inventory remove "elita" from {itemshop::list::%player%::*} execute console command "lp user %player% addtemp elita 30d" send "&8» &aOdebrałeś rangę ELITA!" stop if name of clicked slot is "{@cash_gui_name}": close player's inventory remove "cash" from {itemshop::list::%player%::*} execute console command "lp user %player% addtemp cash 30d" send "&8» &aOdebrałeś rangę CASH!" stop if name of clicked slot is "{@tarcza_gui_name}": close player's inventory remove "tarcza" from {itemshop::list::%player%::*} set {ochrona::%player%} to "&a&lTAK" send "&8» &aOdebrałeś tarczę!" stop if name of clicked slot is "{@brush1_gui_name}": close player's inventory remove "brush1" from {itemshop::list::%player%::*} if player can hold 1 blaze rod of unbreaking 50 named "&6&LBrush &7(I - Jedynka)": give 1 blaze rod of unbreaking 50 named "&6&LBrush &7(I - Jedynka)" with lore " " and "{@opis}" and "{@opis2}" and " " and "{@opis3}" and "{@opis4}" and "{@opis5}" to player else: drop 1 blaze rod of unbreaking 50 named "&6&LBrush &7(I - Jedynka)" with lore " " and "{@opis}" and "{@opis2}" and " " and "{@opis3}" and "{@opis4}" and "{@opis5}" at player send "&8» &aOdebrałeś &6&LBrush &7(I - Jedynka)" stop if name of clicked slot is "{@brush2_gui_name}": close player's inventory remove "brush2" from {itemshop::list::%player%::*} if player can hold 1 blaze rod of unbreaking 50 named "&6&lBrush &7(II - Dwojka)": give 1 blaze rod of unbreaking 50 named "&6&lBrush &7(II - Dwojka)" with lore " " and "{@opis}" and "{@opis2}" and " " and "{@opis3}" and "{@opis4}" and "{@opis5}" to player else: drop 1 blaze rod of unbreaking 50 named "&6&lBrush &7(II - Dwojka)" with lore " " and "{@opis}" and "{@opis2}" and " " and "{@opis3}" and "{@opis4}" and "{@opis5}" at player send "&8» &aOdebrałeś &6&lBrush &7(II - Dwojka)" stop if name of clicked slot is "{@brush3_gui_name}": close player's inventory remove "brush3" from {itemshop::list::%player%::*} if player can hold 1 blaze rod of unbreaking 50 named "&6&lBrush &7(III - Trojka)": give 1 blaze rod of unbreaking 50 named "&6&lBrush &7(III - Trojka)" with lore " " and "{@opis}" and "{@opis2}" and " " and "{@opis3}" and "{@opis4}" and "{@opis5}" to player else: drop 1 blaze rod of unbreaking 50 named "&6&lBrush &7(III - Trojka)" with lore " " and "{@opis}" and "{@opis2}" and " " and "{@opis3}" and "{@opis4}" and "{@opis5}" at player send "&8» &aOdebrałeś &6&lBrush &7(III - Trojka)" stop