Guest User

Kilo

a guest
Feb 28th, 2011
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. GuestPrev - Protection Against Visitors:
  2. Version: v1.2
  3.  
  4. GuestPrev is a simple lightweight plugin to protect your server against visiting or unknown players.
  5. Feel free to open your server to the public without having to worry about griefers.
  6.  
  7. [IMG]
  8. -
  9. Simple, Light, Easy.
  10. No Permissions system required. (But supported)
  11.  
  12. Features: Prevents guests from the following...
  13.  
  14. * Placing, Breaking, or Interacting with Blocks
  15. * Using, Destroying, or Moving Boats/Mine Carts
  16. * Picking Up or Drop Items (Option to Authorize Certain Items)
  17. * Opening Chests, Furnaces, or Dispensers
  18. * Interactions with Doors, Levers, Buttons, or Pressure Plates.
  19. * Workbench Use (Option to Authorize Use)
  20. Additional Features:
  21. * Auto-locks Guest Inventory Changes
  22. * Stops Players From Using Blocks to Climb Over Walls
  23. * Enable or Disable Guest Chat
  24.  
  25. DOWNLOAD: JAR ONLY|WITH PROPERTIES FILES|PROPERTIES EXAMPLE
  26. -
  27. Configuration:
  28.  
  29. On first launch GuestPrev will create a folder containing 2 files.
  30.  
  31. - authorized.txt
  32. - guestprev.properties
  33.  
  34. The authorized.txt works like a white-list and contains names of players who bypass the restrictions.
  35. The guestprev.properties (shown below) lists plugin options.
  36.  
  37. Code:
  38. ##
  39. # Message settings - Notifications players will relieve.
  40. # Leave these settings blank to disable player notifications.
  41. # Use +name to display the players name in the notification.
  42. ##
  43. prev-message=Sorry, guests are not allowed to perform this action\!
  44. join-message=Hello +name, you are currently registered as guest. To gain build rights, ask for a staff member or visit our website.
  45. chat-message=Chat is currently disabled for guests.
  46.  
  47. ##
  48. # Admin settings
  49. ##
  50. admins=Name1,Name2,Name3
  51. opasadmins=false
  52.  
  53. ##
  54. # Guest settings (alloweditem is ONLY for items)
  55. #
  56. # Example settings
  57. # alloweditem=334,319,298,299,300,301 - Lets Players use raw pork, leather, and leather armor
  58. # workbench=true - Give guest the ability use a bench to craft armor from collected leather
  59. ##
  60. alloweditem=
  61. workbench=false
  62. disabledchat=false
  63.  
  64. -
  65. Commands:
  66. /guestprev <command> or use /gp alias
  67.  
  68. /guestprev help (Displays GuestPrev commands)
  69. /guestprev add [player] (Adds a player to authorized.txt)
  70. /guestprev remove [player] (Removes a player from authorized.txt)
  71. /guestprev refresh (Reloads the GuestPrev authorized.txt)
  72. /guestprev chat (Toggles chat availability for guests)
  73. /guestprev list (Lists all authorized players)
  74.  
  75. Note: I hate systems with timers that decrease performance, and don't detect changes from
  76. externally edited files. Just use '/guestprev refresh' after editing.
  77.  
  78. Bonus command for admins ONLY.
  79. Command:
  80.  
  81. /guestprev infinite (Enable/disable infinite use of your inventory items)
  82.  
  83. GuestPrev will detect permissions systems.
  84. Permissions:
  85.  
  86. guestprev.is.authorized
  87. guestprev.is.admin
  88.  
  89. -
  90. Personal comments
  91. I have decided to make this plugin for for 3 reasons...
  92. One, for my own community server protection to prevent visitors from griefing.
  93. Two, to replace Anti-Build since Niji isn't updating it anymore.
  94. And three, for admins who just want a light weight protection system that works without installing a permissions system or in place of using part of a massive plugin collection. (ie. For server admins using a simple or vanilla bukkit server with OP standard).
  95.  
  96. I'm not English so please let me know if you find any errors. Thank you. :D
  97.  
  98. -
  99.  
  100. ToDo:
  101.  
  102. * Maybe a command to kick all guests at once...
  103. * Maybe changes to the properties for disabling guest chat...
  104. * Your suggestions and ideas...
  105.  
  106. Changelog:
  107.  
  108. Version 1.2 (Current)
  109.  
  110. * Admin OP Support.
  111. * Permissions(nijiko/Phoenix/GroupManager) Support.
  112. * Events priorities enforced. (+API Changed support #456)
  113. * Optional/editable Join Message for guests.
  114. * Can restrict the chat for guests + configure a message.
  115. * Each messages set can be use +name to replace by the player name.
  116. * Can allow Workbench in properties.
  117. * Can allow some items to be used/pickup/dropped in properties.
  118. * Added command alias /gp for use in place of /guestprev.
  119. * New commands added. (With a bonus admin command)
  120. * Fix(Removed), Notify messages at pressure plates.
  121.  
  122. Version 1.1
  123.  
  124. * Guests can no longer drop any items.
  125. * Guests can no longer pick up any items.
  126. * Guests can no longer sit in a boat/mine cart
  127. * Guests can no longer move (push) a boat/mine cart
  128. * Guests can no longer destroy a boat/mine cart
  129.  
  130. Version 1.0
  131.  
  132. * Little update about inventory.
  133. * First public release.
Advertisement
Add Comment
Please, Sign In to add comment