Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.79 KB | None | 0 0
  1. #// <>==<>==<> ItemJoin's Custom Items On Join, by RockinChaos <>==<>==<> //#
  2. #// See the Documentations page for a more in-depth tutorial; https://www.spigotmc.org/wiki/itemjoin/ //#
  3. #// For per-world support this best works with Multiverse-Inventories! http://dev.bukkit.org/bukkit-plugins/multiverse-inventories //#
  4. #//
  5. #//
  6. #// E X A M P L E I T E M //#
  7. #//
  8. #// For every world listed in the world-list, you need to make a section for it. //#
  9. #// NOTE: It is only required to have the ID and Slot listed under each item to receive it. //#
  10. #//world: #// This is the first section, This is the name of the world you want to receive the items in. If Global-Items was enabled this would be named global. //#
  11. #// items: #// This is just an identifier to list out the items. This must always be here //#
  12. #// example-item: #// This is the name of the first item we have created, you can name it what ever you want! Just put the NAME and then a colon. Such as New-Name: //#
  13. #// id: DIAMOND_AXE #// This is the Material name OR item ID of the item you want to get //#
  14. #// slot: 0 #// This is the slot number you want to receive the item in. Available slots are 0-35, Helmet, Chestplate, Leggings, Boots, Offhand, or Arbitrary. //#
  15. #// name: '&bUltra Sword' #// This is the custom name of the item. Supports color codes as well as placeholders from PlaceholderAPI! //#
  16. #// data-value: 0 #// This is the data-value that is after the items ID. Usually it is left as 0, but in cases of items like Stained Glass it would need to be set to a number. It is default 0 if a data-value is not specified. //#
  17. #// count: 1 #// This is the amount of each item that will be given. You will be given 1 Diamond Sword. //#
  18. #// durability: 5 #// This is the amount of durability the item has taken, such as if it has 32 durablity, it will now have 27 since it took 5 durability damage. //#
  19. #// lore: #// This is the custom lore of the item. This is just the identifier which is required to start the lore. //#
  20. #// - '&7Useless sword, cannot do much' #// This is the first line of custom lore. You can add multiple lines by copying and pasting it how it is shown below. //#
  21. #// - '&7Only useful for commands...'
  22. #// - '&7Maybe you should try removing the'
  23. #// - '&7Left click and physical actions from the command actions.'
  24. #// - '&7Maybe remove the cancel-events from itemflags as well...'
  25. #// enchantment: #// This is the custom enchantments. Just an identifier again that is required to start the enchantment list. //#
  26. #// - 'FIRE_ASPECT:3' #// The enchantments can be setup the exact same as the lore. Multiple lines can be added. The syntax for enchantments are the ENCHANTMENT_NAME:LEVEL. //#
  27. #// - 'KNOCKBACK:8' #// This is another line of enchantment. Supports unsafe enchants! //#
  28. #// commands: #// These are custom commands that can be bound to items. So once you click the item these commands will execute. These also support placeholders. //#
  29. #// - 'message: &eYou can send yourself custom messages!' #// This is a custom message that can be sent to the player who right-clicked it. //#
  30. #// - 'console: say You can even execute more than one command!' #// This is a command that can be executed by console. //#
  31. #// - 'player: say This is item slot 2' #// This is a command that is executed by the player. //#
  32. #// - 'say I like pancakes!' #// If no executer is defined such as message, console, or player. Then it will be executed by player by default. This is a player command. //#
  33. #// commands-action: RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, LEFT_CLICK_BLOCK, PHYSICAL #// These are command actions. These are all self-explanatory. If you need more help see the documentations page. //#
  34. #// commands-cost: 25 #// This is the amount of in game money it will cost to run all the commands. You must have vault enabled and installed to use this. //#
  35. #// commands-cooldown: 5 #// This is the amount of time in seconds that the player has to wait before executing the commands again. //#
  36. #// cooldown-message: '&7[&eItemJoin&7] &a[%item%&a] &cis on cooldown for &a%timeleft% &cseconds..' #// If a player attempts to execute the commands while they're is on cooldown, this cooldown message will be sent to the player. //#
  37. #// itemflags: #// These are custom itemflags! These allow huge modifications to the items. All itemflags with description are listed below. //#
  38. #// - 'unbreakable' #// Makes this item INDESTRUCTABLE! //#
  39. #// - 'hide-attributes' #// Hides ALL attributes, such as firework color, damage the item does, enchantments. (Hides everything from lore except the custom lore). //#
  40. #// - 'first-join' #// If FirstJoin-Mode-Enabled is set to true then this item will ONLY be given on first-join and first-world-changed. //#
  41. #// - 'placement' #// Prevents this item from being placed if it is a BLOCK, This item obviously can't be since it is a sword. //#
  42. #// - 'inventory-modify' #// Prevents this item from being moved, stored, or switched to offhand in the players inventory. //#
  43. #// - 'cancel-events' #// Prevents player from opening a chest while this item is in hand or any openable items. Useful for canceling the event of opening a book to set custom book items. //#
  44. #// - 'count-lock' #// Prevents the player from using all of the item. If the item is set to count: 32 then each time the player places the block item the stack will be refreshed back to 32. //#
  45. #// - 'death-drops' #// Clears this item if it is dropped on the ground when the player dies //#
  46. #// - 'self-drops' #// Prevents the player from dropping this item, either clicking it out of inventory or using the drop key, usually (q). //#
  47. #// - 'respawn' #// This item will be given on respawn if a player dies. //#
  48. #// - 'disposable' #// The item if a command is bound to it will now remove x1 itself from your inventory upon running the command. //#
  49. #// - 'world-changed' #// This item will be given on world changed, Meaning when you enter the world this item is allowed in it will be given. //#
  50. #// - 'clear-on-join' #// Removes this item on join from your inventory before giving it back. //#
  51. #// - 'clear-on-world-change' #// Removes this item when leaving the world. //#
  52. #// - 'hide-durability' #// Hide the durability bar from your item. //#
  53. #// - 'AllowOpBypass' #// This would allow the user IF THEIR OP to bypass most of these itemflags. It will work on ALL non item modifying flags. This would NOT work on unbreakable, hide-attributes, stuff like that. //#
  54. #// - 'CreativeBypass' #// This would allow the user IF THEIR IN CREATIVE MODE to bypass most of these itemflags. It will work on ALL non item modifying flags. This would NOT work on unbreakable, hide-attributes, stuff like that. //#
  55. #// permission-node: 'itemjoin.ultra' #// Each items permission node by default is itemjoin.WORLDNAME.ITEMNAME. You can change this though by putting ANY permission in the permission-node section! Permission to get this item is now itemjoin.ultra! //#
  56.  
  57. items-Version: 5
  58.  
  59. #// Global Settings, for each world listed under world-list. These information will take effect in them. //#
  60. Global-Settings:
  61. Prevention:
  62. prevent-pickups: false
  63. AllowOPBypass: false
  64. CreativeBypass: false
  65. Clear-On:
  66. clear-on-join: false
  67. clear-on-world-change: false
  68. clear-only-itemjoin-on-join: false
  69. clear-only-itemjoin-on-world-change: false
  70. AllowOPBypass: false
  71. First-Join:
  72. FirstJoin-Mode-Enabled: false
  73. Get-Items:
  74. ItemJoin-Specific-Items: true
  75. Global-Items: false
  76. Delay: 2
  77.  
  78. #// This is the list of worlds that have custom items on join. //#
  79. #// ItemJoin will only function in the worlds listed here //#
  80. world-list:
  81. - HUB
  82. - ArenaPvP
  83. - world_nether
  84.  
  85. #// For every world listed in the world-list, you need to make a section for it. //#
  86. #// NOTE: It is only required to have the id and slot listed under each item to receive it. //#
  87. #// This is the first section, This is the name of the world you want to receive the items in. //#
  88. HUB:
  89. items:
  90. GameMenu:
  91. id: COMPASS
  92. slot: 0
  93. name: '&aGame Menu'
  94. data-value: 0
  95. count: 1
  96. lore:
  97. - '&7Select game and play!'
  98. commands:
  99. - 'player: chestcommands open Games'
  100. commands-action: RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, LEFT_CLICK_BLOCK
  101. commands-cost: 0
  102. commands-cooldown: 1
  103. cooldown-message: '&9Game Selector> &7Sporije malo!'
  104. itemflags:
  105. - 'first-join'
  106. - 'self-drops'
  107. - 'count-lock'
  108. - 'placement'
  109. - 'inventory-modify'
  110. permission-node: 'server.lobby'
  111. LobbyMenu:
  112. id: 347
  113. slot: 1
  114. name: '&aLobby Menu'
  115. data-value: 0
  116. count: 1
  117. lore:
  118. - '&7Odaberi lobby i uzivaj!'
  119. commands:
  120. - 'player: chestcommands open Lobby'
  121. commands-action: RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, LEFT_CLICK_BLOCK
  122. commands-cost: 0
  123. commands-cooldown: 1
  124. cooldown-message: '&9Lobby Selector> &7Sporije malo!'
  125. itemflags:
  126. - 'first-join'
  127. - 'self-drops'
  128. - 'count-lock'
  129. - 'placement'
  130. - 'inventory-modify'
  131. permission-node: 'server.lobby'
  132. Bob:
  133. id: 339
  134. slot: 8
  135. name: '&aBob The Chicken'
  136. data-value: 0
  137. count: 1
  138. lore:
  139. - '&7See rewards!'
  140. enchantment:
  141. - 'FIRE_ASPECT:1'
  142. commands:
  143. - 'player: chestcommands open Bob'
  144. commands-action: RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, LEFT_CLICK_BLOCK
  145. commands-cost: 0
  146. commands-cooldown: 0
  147. cooldown-message: '&9Developer> &7Sporije malo!'
  148. itemflags:
  149. - 'first-join'
  150. - 'self-drops'
  151. - 'count-lock'
  152. - 'placement'
  153. - 'inventory-modify'
  154. permission-node: 'server.lobby'
  155.  
  156.  
  157. #// This is the second world section, This is the name of the world you want to receive the next set of items in. //#
  158. #// You can add as many world sections as you want. //#
  159. ArenaPvP:
  160. items:
  161. Cin:
  162. id: 276
  163. slot: 4
  164. name: '&aJoin queue'
  165. data-value: 0
  166. count: 1
  167. commands:
  168. - 'player: 1vs1 rjoin'
  169. commands-action: RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, LEFT_CLICK_BLOCK
  170. commands-cost: 0
  171. commands-cooldown: 1
  172. cooldown-message: '&9Game Selector> &7Sporije malo!'
  173. itemflags:
  174. - 'first-join'
  175. - 'self-drops'
  176. - 'count-lock'
  177. - 'placement'
  178. - 'inventory-modify'
  179. permission-node: 'server.lobby'
  180. Leave:
  181. id: 152
  182. slot: 8
  183. name: '&4&lLeave queue '
  184. data-value: 0
  185. count: 1
  186. lore:
  187. - '&7Odaberi lobby i uzivaj!'
  188. commands:
  189. - 'player: 1vs1 leave'
  190. commands-action: RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, LEFT_CLICK_BLOCK
  191. commands-cost: 0
  192. commands-cooldown: 0
  193. cooldown-message: '&9Lobby Selector> &7Sporije malo!'
  194. itemflags:
  195. - 'first-join'
  196. - 'self-drops'
  197. - 'count-lock'
  198. - 'placement'
  199. - 'inventory-modify'
  200. permission-node: 'server.lobby'
  201. elo:
  202. id: 339
  203. slot: 6
  204. name: '&e&lSTATS'
  205. data-value: 0
  206. count: 1
  207. commands:
  208. - 'player: 1vs1 stats'
  209. commands-action: RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_AIR, LEFT_CLICK_BLOCK
  210. commands-cost: 0
  211. commands-cooldown: 0
  212. cooldown-message: '&9Developer> &7Sporije malo!'
  213. itemflags:
  214. - 'first-join'
  215. - 'self-drops'
  216. - 'count-lock'
  217. - 'placement'
  218. - 'inventory-modify'
  219. permission-node: 'server.lobby'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement