MC Eunuch

MC Eunuch

A few days ago somebody came on my favorite MC server and killed all the horses in our barn. Even though they were Newbies, couldn't break or place blocks etc, they still killed our poor horses - by punching no less. This plugin was written to prevent such grief. Enable this plugin for your Newbie group to complete cut off their ability to grief :]

Version 1.2 has been released. Users who were using 1.1, please delete your config.yml files and reload the plugin so a new config file can be generated with the new settings!

Abilities Disabled

  1. Interaction with chests, doors, fences, furnaces, and the like
  2. Destruction of blocks (Note: seems variable if the user has creative and is OP)
  3. Interaction with entities - horse inventories, villager trading, etc
  4. Item pickups - user cannot pick up any drops
  5. Damage to entities - cannot damage mobs, horses, players, livestock etc
  6. Trampling of crops, ignition of fires - no worries about griefers burning down barns anymore
  7. Block placement - on top of all else, if the newbs manage to get a block they can't place it
  8. Mob chasing - creepers, endermen etc. will ignore the eunuchs
  9. Disable chat - disable the ability of newbs to spam chat

Permissions

Permission    Affect
eunuch.disabled   Exempts this user group from the plugin's disabling effects. More explanation below.
-eunuch.disabledRemoves the above permission if a group accidentally acquired it somehow, usually through permission inheritance.

This plugin does NOT require a third party permissions plugin, but it might help. Essentially, what you want to do is give any group you DON'T want 'castrated' the eunuch.disabled permission.

Here's how most groups are set up. You start with a Default group with a bunch of permissions. Then you have a VIP group that 'inherits' all of the Default group's permissions as well as a few of its own. Finally, you have an Admin group that inherits permissions from the VIP group and a few of its own. This group will also inherit the Default group's permissions because they inherit every one of the VIP group's plugins.

SO

If you want the Default group castrated, give the VIP group the eunuch.disabled permission. The VIPs and the Admins (because of inheritance) will thus be protected from the plugin's effects. Essentially, if you don't want a group to be able to do things, DON'T give them the eunuch.disabled permission and if you want a group to be able to do things, DO give them the permission.

If for some reason you find that a group is NOT being castrated when they are supposed to be, try giving them the -eunuch.disabled permission (make sure you have the minus sign!). This will remove the eunuch.disabled permission if they accidentally inherited it.

Permissions

The syntax for all settings is boolean values - true or false.

Basic Settings   EffectDefault
speakinchatWhen true, users can speak in the chat. When false, they cannot speak but can still issue commands.true
blockbreakWhen false, users cannot break blocks. For some reason OPs in Creative mode can circumvent this. Non-OP Creative users are still unable to break them, however.false
damageentityWhen false, users cannot damage entities. These include horses, villagers, players, hostile and friendly mobs, etc.false
interactwithentitySetting to true enables interaction with horses, villagers, etc.false
pickupitemsWhen false users cannot pick up any item drops.false
soiltrambleWhen false players cannot trample soil (farmland).false
pressureplatesWhen true players can still activate pressure plates, when false they cannot.false
righclickactionsSetting to true enables interaction with chests, doors, crafting tables, etc.false
 
Advanced Settings   EffectDefault
useoakdoorsSetting to true enables the opening/closing of oak doors.false
usebirchdoorsSetting to true enables the opening/closing of birch doors.false
usedarkoakdoorsSetting to true enables the opening/closing of dark oak doors.false
useacaciadoorsSetting to true enables the opening/closing of acacia doors.false
usejungledoorsSetting to true enables the opening/closing of jungle doors.false
usesprucedoorsSetting to true enables the opening/closing of spruce doors.false
useirondoorsSetting to true enables the opening/closing of iron doors.false
useoakgatesSetting to true enables the opening/closing of oak gates.false
usebirchgatesSetting to true enables the opening/closing of birch gates.false
usedarkoakgatesSetting to true enables the opening/closing of dark oak gates.false
usesprucegatesSetting to true enables the opening/closing of spruce gates.false
usejunglegatesSetting to true enables the opening/closing of jungle gates.false
useacaciagatesSetting to true enables the opening/closing of acacia gates.false
usewoodbuttonsSetting to true enables the usage of wood buttons.false
usestonebuttonsSetting to true enables the usage of stone buttons.false
usewoodtrapdoorsSetting to true enables the opening/closing of wood trapdoors.false
useirontrapdoorsSetting to true enables the opening/closing of iron trapdoors.false
useleversSetting to true enables the usage of levers.false
 
Mob Settings   EffectDefault
ignoredbymobsWhen this value is set to true MOST hostile mobs will ignore the player. Endermen will not be aggro'd and creepers cannot be exploded, either by hitting or via proximity. Skellies and zombies will also ignore the eunuchs. Certain mobs, however, do not attack in the traditonal manner and as such will STILL ATTACK even if this is set to true. They include hostile pigmen, bosses (dragon, wither, etc), and slimes. Still, this setting should be sufficient protection against most mobs for exploring players.true

A new feature has been added in 1.2 - exemptions. If you want a specific player of group to have any of the settings disabled above enabled, give them this permission - eunuch.{power}. So to enable oak doors for a group, give them eunuch.useoakdoors. If the group or person already has the eunuch.disabled permission, this is unnecessary.

Change Log

VersionChanges
1.0Initial release. Disables everything, but permissions are complicated.
1.1Adds a ton of configuration and simplifies permissions.
1.2Adds more configuration, updates for new versions of MC/Bukkit/Spigot.

Other Plugins You Might Find Useful

Sleepvote - allows players to propose a vote to set the time to day and skip the night. Highly configurable and lightweight.

Credits

The top image was made by ElMafias and the bottom by Limitless, both from GTAF. Thanks again gentlemen! Special thanks to db7363 for early testing, suggestions, and miscellaneous help. Dedicated to: Rown, Rdny. and Whiteout. Thanks goes out to the rest of the GTAF crew too!


Comments

  • To post a comment, please or register a new account.
Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    63333
  • Created
    Aug 7, 2013
  • Last Released File
    Jan 2, 2015
  • Total Downloads
    530
  • License

Categories

Members

Recent Files