Advertisement
Guest User

GiftEvents

a guest
Aug 3rd, 2015
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.03 KB | None | 0 0
  1. # The 'events:' section has a sub-section for each configured event.
  2. #
  3. # The 'birthday:' and 'anniversary:' events are special in that they are based on
  4. # dates stored in the server. They can be disabled by removing or commenting them
  5. # out in the configuration.
  6. #
  7. # Events with dates apply to all players with the proper permissions.
  8. #
  9. # Each event has these options:
  10. # date - Date of the event, ignored for 'birthday:' and 'anniversary:' events
  11. # belated - Should the gift be given after the event has passed, default is false
  12. # annoucement - An optional message will be made server wide whenever a player
  13. # joins matching the event date and if they have not already exhausted their
  14. # allotment of messages.
  15.  
  16.  
  17. # Explanation of advanced events:
  18. # Advanced events can be used to give players a gift for every day they join.
  19. # The numbers of days are not limited and can be over 365(a year) too.
  20. # Advanced events do not support announcements, specific dates or the belated option!
  21. # An Example can be found at the end of the file.
  22.  
  23.  
  24. # For each type of event gifts can be configured through the 'gift:' section
  25. # with the following properties:
  26. # items - Items to be put in player's inventory
  27. # name - Name to give to items if not specified for item seperately
  28. # message - Message to give to player when they recieve the gift
  29.  
  30.  
  31. # Explanation of items:
  32. # items: is a list of associative arrays with each associative array having:
  33. # id - Indicates which item to use. This can be the numerial id of the object
  34. # or a string from the Bukkit Material enum
  35. # enchantments - Optional associative array with id as the key and
  36. # level as the value. The id can either be an integer enchantment id or
  37. # a string with a name from the Bukkit Enchantment enum
  38. # amount - Optional number of the item to give
  39. # name - Optional name to give to item instead of one specified in gift section
  40. # damage - Optional damage/durability to assign to the given item
  41.  
  42. # Announcement and gift messages are formatted with the Java String Formatter
  43. # and passed player_name, and a Calendar date
  44.  
  45. # All enchantments provided by CraftBukkit/Spigot can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html
  46. # All materials can be found here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
  47. # Entity Ids can be found here: http://minecraft.gamepedia.com/Spawn_Egg#Ability_to_spawn
  48.  
  49. events:
  50. birthday:
  51. belated: True
  52. announcement: "Today is %1$s's birthday!"
  53. gift:
  54. items:
  55. - { id: CAKE, enchantments: {LOOT_BONUS_BLOCKS: 1} } # Cake w/ Fortune I
  56. name: "Happy Birthday!"
  57. message: "Happy Birthday %1$s, check your inventory for a gift"
  58.  
  59. anniversary:
  60. belated: True
  61. announcement: "Today is %1$s's first play anniversary. Player since %2$tb %2$te, %2$tY"
  62. gift:
  63. items:
  64. - { id: DIAMOND, enchantments: {ARROW_DAMAGE: 1}, amount: 5 } # Diamond w/ Power I
  65. name: "Happy Anniversary!"
  66. message: "Happy First Play Anniversary %1$s, check your inventory for a gift"
  67.  
  68. christmas:
  69. date: 12-25
  70. belated: False
  71. gift:
  72. items:
  73. - { id: COAL, enchantments: {THORNS: 1} } # Coal w/ Thorns I
  74. name: "You've been naughty"
  75. message: "Merry Christmas %1$s, check your inventory for a gift"
  76.  
  77. new_years:
  78. date: 01-01
  79. belated: False
  80. gift:
  81. items:
  82. - { id: FIREWORK, name: "Blast off!" } # Firework Rocket
  83. name: "Happy New Year!"
  84. message: "Happy New Year %1$s, check your inventory for a gift"
  85.  
  86. Survival-Anniversary:
  87. date: 08-03
  88. belated: False
  89. gift:
  90. items:
  91. - { id: DIAMOND, amount: 5 } #Survival Anniversary
  92. name: "1 Year of Survival!"
  93. message: "1 Year of Survival! Check your Inventory!"
  94.  
  95. valentines:
  96. date: 02-14
  97. belated: False
  98. gift:
  99. items:
  100. - { id: RED_ROSE, enchantments: {ARROW_INFINITE: 1} } # A red rose
  101. name: "I love you!"
  102. message: "Happy Valentines Day %1$s, check your inventory for a gift!"
  103.  
  104. advanced-events:
  105. Example:
  106. 1:
  107. gift:
  108. items:
  109. - { id: STONE, enchantments: {ARROW_INFINITE: 1} } # stone on the first day
  110. name: "Day one!"
  111. message: "Happy STONE Day %1$s!"
  112. 2:
  113. gift:
  114. items:
  115. - { id: DIRT, enchantments: {ARROW_INFINITE: 1} } # dirt on the second day
  116. name: "Day two!"
  117. message: "Happy DIRT Day %1$s!"
  118. 4:
  119. gift:
  120. items:
  121. - { id: GRASS, enchantments: {ARROW_INFINITE: 1} } # grass on the fourth day
  122. name: "Day four!"
  123. message: "Happy GRASS Day %1$s!"
  124. 6:
  125. gift:
  126. items:
  127. - { id: GLASS, enchantments: {ARROW_INFINITE: 1} } # glass on the sixth day
  128. name: "Day six!"
  129. message: "Happy GLASS Day %1$s!"
  130. 879:
  131. gift:
  132. items:
  133. - { id: GOLD_BLOCK, enchantments: {DURABILITY: 1} } # gold block on the 879th day
  134. name: "Day 879!"
  135. message: "You sure are a great user, %1$s!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement