Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GuestPrev - Protection Against Visitors:
- Version: v1.2
- GuestPrev is a simple lightweight plugin to protect your server against visiting or unknown players.
- Feel free to open your server to the public without having to worry about griefers.
- [IMG]
- -
- Simple, Light, Easy.
- No Permissions system required. (But supported)
- Features: Prevents guests from the following...
- * Placing, Breaking, or Interacting with Blocks
- * Using, Destroying, or Moving Boats/Mine Carts
- * Picking Up or Drop Items (Option to Authorize Certain Items)
- * Opening Chests, Furnaces, or Dispensers
- * Interactions with Doors, Levers, Buttons, or Pressure Plates.
- * Workbench Use (Option to Authorize Use)
- Additional Features:
- * Auto-locks Guest Inventory Changes
- * Stops Players From Using Blocks to Climb Over Walls
- * Enable or Disable Guest Chat
- DOWNLOAD: JAR ONLY|WITH PROPERTIES FILES|PROPERTIES EXAMPLE
- -
- Configuration:
- On first launch GuestPrev will create a folder containing 2 files.
- - authorized.txt
- - guestprev.properties
- The authorized.txt works like a white-list and contains names of players who bypass the restrictions.
- The guestprev.properties (shown below) lists plugin options.
- Code:
- ##
- # Message settings - Notifications players will relieve.
- # Leave these settings blank to disable player notifications.
- # Use +name to display the players name in the notification.
- ##
- prev-message=Sorry, guests are not allowed to perform this action\!
- join-message=Hello +name, you are currently registered as guest. To gain build rights, ask for a staff member or visit our website.
- chat-message=Chat is currently disabled for guests.
- ##
- # Admin settings
- ##
- admins=Name1,Name2,Name3
- opasadmins=false
- ##
- # Guest settings (alloweditem is ONLY for items)
- #
- # Example settings
- # alloweditem=334,319,298,299,300,301 - Lets Players use raw pork, leather, and leather armor
- # workbench=true - Give guest the ability use a bench to craft armor from collected leather
- ##
- alloweditem=
- workbench=false
- disabledchat=false
- -
- Commands:
- /guestprev <command> or use /gp alias
- /guestprev help (Displays GuestPrev commands)
- /guestprev add [player] (Adds a player to authorized.txt)
- /guestprev remove [player] (Removes a player from authorized.txt)
- /guestprev refresh (Reloads the GuestPrev authorized.txt)
- /guestprev chat (Toggles chat availability for guests)
- /guestprev list (Lists all authorized players)
- Note: I hate systems with timers that decrease performance, and don't detect changes from
- externally edited files. Just use '/guestprev refresh' after editing.
- Bonus command for admins ONLY.
- Command:
- /guestprev infinite (Enable/disable infinite use of your inventory items)
- GuestPrev will detect permissions systems.
- Permissions:
- guestprev.is.authorized
- guestprev.is.admin
- -
- Personal comments
- I have decided to make this plugin for for 3 reasons...
- One, for my own community server protection to prevent visitors from griefing.
- Two, to replace Anti-Build since Niji isn't updating it anymore.
- 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).
- I'm not English so please let me know if you find any errors. Thank you. :D
- -
- ToDo:
- * Maybe a command to kick all guests at once...
- * Maybe changes to the properties for disabling guest chat...
- * Your suggestions and ideas...
- Changelog:
- Version 1.2 (Current)
- * Admin OP Support.
- * Permissions(nijiko/Phoenix/GroupManager) Support.
- * Events priorities enforced. (+API Changed support #456)
- * Optional/editable Join Message for guests.
- * Can restrict the chat for guests + configure a message.
- * Each messages set can be use +name to replace by the player name.
- * Can allow Workbench in properties.
- * Can allow some items to be used/pickup/dropped in properties.
- * Added command alias /gp for use in place of /guestprev.
- * New commands added. (With a bonus admin command)
- * Fix(Removed), Notify messages at pressure plates.
- Version 1.1
- * Guests can no longer drop any items.
- * Guests can no longer pick up any items.
- * Guests can no longer sit in a boat/mine cart
- * Guests can no longer move (push) a boat/mine cart
- * Guests can no longer destroy a boat/mine cart
- Version 1.0
- * Little update about inventory.
- * First public release.
Advertisement
Add Comment
Please, Sign In to add comment