Advertisement
Guest User

custom plugin

a guest
Jan 25th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. Custom Plugins
  2. (Server is currently 1.7.10 but will be updated to 1.8 when a stable version of bukkit comes out)
  3.  
  4. 1) Token Converter
  5. Desc: Converts item in players hand into it's value in tokens. EX: 64 Cobblestone = 1 Token
  6. Info: Tokens are blaze powder renamed as '&5&lVoid &6&lToken' and enchanted with flame 1. No lores.
  7. If the item they are holding are not liable to be converted to tokens, this message will be displayed &5[&6Converter&5] &cItem can't be converted
  8.  
  9. If the item they are holding CAN be converted but they don't have enough, this message will be displayed:
  10. &5[&6Converter&5] &cYou don't have the sufficient amount to convert
  11. &cYou need &f__ &cof the item
  12.  
  13. Command: /token convert or /convert
  14. Permission: token.convert
  15. To set the value of items, we can either have a configuration file or in-game commands to do them.
  16. Config Example-
  17. #Indicate the worth of items in tokens here
  18. cobblestone:
  19. amount: 64
  20. worth: 1
  21.  
  22. In-game commands example-
  23. /tokenworth cobblestone 64 1
  24. permission: token.setworth
  25.  
  26. 2) Shops
  27. Desc: People can create shops with shop names
  28. Info: Players can only make 1 shop unless with special permission. Players cannot have the same shop name.
  29. Commands:
  30. /shop create [shopname]
  31. Desc: creates shop location when he/she is standing, it must be his/her own island or an island he/she is added on)
  32. /shop visit [shopname]
  33.  
  34. /shop close [shopname] (5 minute cool down)
  35. Desc: Temporarily Closes his/her own shop (not delete), so other players cannot visit it.
  36.  
  37. /shop open [shopname] (5 minute cool down)
  38. Desc: Open shop (if it was closed)
  39.  
  40. /shop rename [shopname]
  41. Desc: limit to only able to change 3 times unless with a special permission
  42.  
  43. /shop rename reset [player]
  44. Desc: resets players rename count (For example if they already reaches the max renames, with this command it can reset it back to 0)
  45. /shop rename confirm
  46.  
  47. /shop visit confirm (read 'messages' below)
  48.  
  49. /shop setspawn
  50. Desc: changes the place where players will spawn when they visit the shop
  51.  
  52. Permissions: shop.create
  53. shop.create.extra.[amount]
  54. shop.visit
  55. shop.delete
  56. shop.delete.others
  57. shop.close
  58. shop.close.others (admin permission)
  59. shop.open
  60. shop.open.others (admin permission)
  61. shop.rename
  62. shop.rename.others (admin permission) (does not affect anyones rename count)
  63. shop.rename.extra.[amount]
  64. shop.rename.reset
  65. shop.rename.unlimited
  66. shop.rename.confirm
  67. Messages- (Preferred to be able to change in messages.yml, but not required)
  68. /shop rename confirm
  69. Since players can only rename their shop 3 times, we should let them know. Each time they do
  70. /shop rename, this message is displayed:
  71. &3[&bShop&3]&eConfirm by typing /shop rename confirm within 10 seconds
  72. &eAfter this you can rename your shop [amount] more times
  73.  
  74. If they already reach the maximum of renames, this message is displayed:
  75. &3[&bShop&3]&cYou have already reached the maximum of renames
  76.  
  77. If the shop they want to go to is closed :
  78. &3[&bShop&3]&cShop is currently Closed
  79.  
  80. /shop visit confirm
  81. When Player A has a shop named 'shop1', but then he changes it to 'shop2'. PlayerB really likes the original shop1 but didn't know that PlayerA changed the name so he/she tries to do the command
  82. /shop visit shop1. This message should appear:
  83. &3[&bShop&3]&ePlayer A has recently changed &a'shop1' &6to &a'shop2'
  84. &cIf you would to go to &a'shop1'&c, type /shop confirm within 10 seconds
  85.  
  86. When a player closes his/her shop
  87. This message is displayed to all players online:
  88. &3[&bShop&3] &6[Shopname] &ehas been &cclosed
  89.  
  90. When a player opens his/her shop
  91. This message is displayed to all players online:
  92. &3[&bShop&3] &6[Shopname] &ehas been &aopened
  93.  
  94. When a player renames his/her shop
  95. &3[&bShop&3] &e[previousshopname] &ahas been renamed to &e[newshopname]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement