1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-12 09:35:26 +02:00

1.4 update :: protect updates :: update config.yml

This commit is contained in:
Iaccidentally
2012-10-28 10:53:26 -04:00
parent a12706f88d
commit 6be807e30d
4 changed files with 133 additions and 139 deletions

View File

@@ -8,15 +8,10 @@
# If you receive an error when Essentials loads, ensure that: # If you receive an error when Essentials loads, ensure that:
# - No tabs are present: YAML only allows spaces # - No tabs are present: YAML only allows spaces
# - Indents are correct: YAML hierarchy is based entirely on indentation # - Indents are correct: YAML hierarchy is based entirely on indentation
# - You have "escaped" all apostrophes in your text: If you want to write "don't", for example, write "don''t" instead (note the doubled apostrphe) # - You have "escaped" all apostrophes in your text: If you want to write "don't", for example, write "don''t" instead (note the doubled apostrophe)
# - List items are prefixed with a hyphen and indented:
# lists:
# - look like this
# not:
# - like this
# - Text with symbols is enclosed in single or double quotation marks # - Text with symbols is enclosed in single or double quotation marks
# - CraftBukkit and Permissions have been updated: CraftBukkit and Essentials almost always line up, but sometimes other plugins fall behind CraftBukkit's multiple daily updates
# - You have saved the document as UTF-8, NOT the default, ANSI # If you have problems join the Essentials help support channel: http://tiny.cc/EssentialsChat
############################################################ ############################################################
# +------------------------------------------------------+ # # +------------------------------------------------------+ #
@@ -25,7 +20,7 @@
############################################################ ############################################################
# A color code between 0-9 or a-f. Set to 'none' to disable. # A color code between 0-9 or a-f. Set to 'none' to disable.
ops-name-color: 'c' ops-name-color: '4'
# The character(s) to prefix all nicknames, so that you know they are not true usernames. # The character(s) to prefix all nicknames, so that you know they are not true usernames.
nickname-prefix: '~' nickname-prefix: '~'
@@ -50,9 +45,9 @@ teleport-cooldown: 0
# The delay, in seconds, before a user actually teleports. If the user moves or gets attacked in this timeframe, the teleport never occurs. # The delay, in seconds, before a user actually teleports. If the user moves or gets attacked in this timeframe, the teleport never occurs.
teleport-delay: 0 teleport-delay: 0
# The delay, in seconds, a player can't be attacked by other players after he has been teleported by a command # The delay, in seconds, a player can't be attacked by other players after they have been teleported by a command
# This will also prevent that the player can attack other players # This will also prevent the player attacking other players
teleport-invulnerability: 2 teleport-invulnerability: 4
# The delay, in seconds, required between /heal attempts # The delay, in seconds, required between /heal attempts
heal-cooldown: 60 heal-cooldown: 60
@@ -72,7 +67,7 @@ item-spawn-blacklist:
# - essentials.give.item-[itemid] # - essentials.give.item-[itemid]
permission-based-item-spawn: false permission-based-item-spawn: false
# Mob limit on spawnmob # Mob limit on the /spawnmob command per execution
spawnmob-limit: 10 spawnmob-limit: 10
# Shall we notify users when using /lightning # Shall we notify users when using /lightning
@@ -80,33 +75,36 @@ warn-on-smite: true
# motd and rules are now configured in the files motd.txt and rules.txt # motd and rules are now configured in the files motd.txt and rules.txt
# When a command conflicts with another plugin, by default, Essentials will try to force the OTHER plugin to take # When a command conflicts with another plugin, by default, Essentials will try to force the OTHER plugin to take priority.
# priority. If a command is in this list, Essentials will try to give ITSELF priority. This does not always work: # Commands in in this list, will tell Essentials to 'not give up' the command to other plugins.
# usually whichever plugin was updated most recently wins out. However, the full name of the command will always work. # In this state, which plugin 'wins' appears to be almost random.
# For example, if WorldGuard and Essentials are both enabled, and WorldGuard takes control over /god, /essentials:god #
# will still map to Essentials, whereas it might normally get forced upon WorldGuard. Commands prefixed with an "e", # If you have two plugin with the same command and you wish to force Essentials to take over, you need an alias.
# such as /egod, will always grant Essentials priority. # To force essentials to take 'god' alias 'god' to 'egod'.
# We should try to take priority over /god. If this doesn't work, use # See http://wiki.bukkit.org/Bukkit.yml#aliases for more information
# /essentials:god or /egod. If god is set using WorldGuard, use /ungod to remove then use whichever you see fit.
overridden-commands: overridden-commands:
- god # - god
# Disabled commands will be completely unavailable on the server. # Disabled commands will be completely unavailable on the server.
# Disabling commands here will have no effect on command conflicts.
disabled-commands: disabled-commands:
# - nick # - nick
# Restricted commands have been removed. # If you do not wish to use a permission system, you can define a list of 'player perms' below.
# Now we have a whitelist, all commands not on this list are only available to ops. # This list has no effect if your using a supported permissions system.
# These will have NO EFFECT if you have Permissions installed! # If your using an unsupported permissions system simply delete this section.
# They are here only if you want something simpler than Permissions. # Whitelist the commands and permissions you wish to give players by default (everything else is op only).
# These are the permissions without the "essentials." part. # These are the permissions without the "essentials." part.
player-commands: player-commands:
- afk - afk
- afk.auto
- back - back
- back.ondeath - back.ondeath
- balance - balance
- balance.others - balance.others
- balancetop - balancetop
- build
- chat.color - chat.color
- chat.format - chat.format
- chat.shout - chat.shout
@@ -125,7 +123,7 @@ player-commands:
- info - info
- itemdb - itemdb
- kit - kit
- kit.tools - kits.tools
- list - list
- mail - mail
- mail.send - mail.send
@@ -137,8 +135,6 @@ player-commands:
- near - near
- pay - pay
- ping - ping
- powertool
- powertooltoggle
- protect - protect
- r - r
- rules - rules
@@ -158,9 +154,11 @@ player-commands:
- signs.use.free - signs.use.free
- signs.use.gamemode - signs.use.gamemode
- signs.use.heal - signs.use.heal
- signs.use.info
- signs.use.kit - signs.use.kit
- signs.use.mail - signs.use.mail
- signs.use.protection - signs.use.protection
- signs.use.repair
- signs.use.sell - signs.use.sell
- signs.use.time - signs.use.time
- signs.use.trade - signs.use.trade
@@ -187,7 +185,7 @@ kits:
dtools: dtools:
delay: 10 delay: 10
items: items:
- 277 1 efficiency:1 - 277 1 efficiency:1 durability:1
- 278 1 - 278 1
- 279:780 1 - 279:780 1
tools: tools:
@@ -199,38 +197,37 @@ kits:
- 275 1 - 275 1
# Essentials Sign Control # Essentials Sign Control
# See http://ess.khhq.net/wiki/Sign_Tutorial for instructions on how to use these. # See http://wiki.ess3.net/wiki/Sign_Tutorial for instructions on how to use these.
# To enable signs, remove # symbol. To disable all signs, comment/remove each sign. # To enable signs, remove # symbol. To disable all signs, comment/remove each sign.
# Essentials Colored sign support will be enabled when any sign types are enabled. # Essentials Colored sign support will be enabled when any sign types are enabled.
# We recommend not enabling chest protection signs if you don't intend to use them, (or are using LWC/Lockette). # Color is not an actual sign, it's for enabling using color codes on signs, when the correct permissions are given.
enabledSigns: enabledSigns:
#- color
#- balance #- balance
#- buy #- buy
#- color #- sell
#- disposal #- trade
#- enchant
#- free #- free
#- disposal
#- warp
#- kit
#- mail
#- enchant
#- gamemode #- gamemode
#- heal #- heal
#- info #- info
#- kit
#- mail
#- protection
#- repair
#- sell
#- spawnmob #- spawnmob
#- repair
#- time #- time
#- trade
#- warp
#- weather #- weather
# How many times per second can Essentials signs be interacted with. # How many times per second can Essentials signs be interacted with per player.
# Values should be between 1-20, 20 being virtually no lag protection.s # Values should be between 1-20, 20 being virtually no lag protection.
# Lower numbers will reduce the possibility of lag, but may annoy players. # Lower numbers will reduce the possibility of lag, but may annoy players.
sign-use-per-second: 4 sign-use-per-second: 4
# Backup runs a command while saving is disabled # Backup runs a batch/bash command while saving is disabled
backup: backup:
# Interval in minutes # Interval in minutes
interval: 30 interval: 30
@@ -249,16 +246,12 @@ debug: false
# Set the locale for all messages # Set the locale for all messages
# If you don't set this, the default locale of the server will be used. # If you don't set this, the default locale of the server will be used.
# Don't forget to remove the # infront of the line # Don't forget to remove the # in front of the line
#locale: de_DE #locale: de_DE
# Turn off god mode when people exit # Turn off god mode when people exit
remove-god-on-disconnect: false remove-god-on-disconnect: false
# Use the permission system of bukkit
# This only works if no other permission plugins are installed
use-bukkit-permissions: false
# Auto-AFK # Auto-AFK
# After this timeout in seconds, the user will be set as afk. # After this timeout in seconds, the user will be set as afk.
# Set to -1 for no timeout. # Set to -1 for no timeout.
@@ -284,7 +277,7 @@ disable-item-pickup-while-afk: false
# Disable this to reduce server lag. # Disable this to reduce server lag.
cancel-afk-on-move: true cancel-afk-on-move: true
# You can disable the death messages of minecraft here # You can disable the death messages of Minecraft here
death-messages: true death-messages: true
# Add worlds to this list, if you want to automatically disable god mode there # Add worlds to this list, if you want to automatically disable god mode there
@@ -293,20 +286,21 @@ no-god-in-worlds:
# Set to true to enable per-world permissions for teleporting between worlds with essentials commands # Set to true to enable per-world permissions for teleporting between worlds with essentials commands
# This applies to /world, /back, /tp[a|o][here|all], but not warps. # This applies to /world, /back, /tp[a|o][here|all], but not warps.
# Give someone permission to teleport to a world with essentials.world.<worldname> # Give someone permission to teleport to a world with essentials.worlds.<worldname>
# This does not affect the /home command, there is a separate toggle below for this.
world-teleport-permissions: false world-teleport-permissions: false
# The number of items given if the quantity parameter is left out in /item or /give. # The number of items given if the quantity parameter is left out in /item or /give.
# If this number is below 1, the maximum stack size size is given. If oversized stacks # If this number is below 1, the maximum stack size size is given. If over-sized stacks
# is not enabled, any number higher then the maximum stack size results in more than one stack. # are not enabled, any number higher than the maximum stack size results in more than one stack.
default-stack-size: -1 default-stack-size: -1
# Oversized stacks are stacks that ignore the normal max stacksize. # Over-sized stacks are stacks that ignore the normal max stack size.
# They can be obtained using /give and /item, if the player has essentials.oversizedstacks permission. # They can be obtained using /give and /item, if the player has essentials.oversizedstacks permission.
# How many items should be in an oversized stack? # How many items should be in an over-sized stack?
oversized-stacksize: 64 oversized-stacksize: 64
# Do you allow to repair enchanted weapons and armor? # Allow repair of enchanted weapons and armor.
# If you set this to false, you can still allow it for certain players using the permission # If you set this to false, you can still allow it for certain players using the permission
# essentials.repair.enchanted # essentials.repair.enchanted
repair-enchanted: true repair-enchanted: true
@@ -315,35 +309,31 @@ repair-enchanted: true
#If you set this to true any plugin that uses teleport will have the previous location registered. #If you set this to true any plugin that uses teleport will have the previous location registered.
register-back-in-listener: false register-back-in-listener: false
#Set timeout in seconds for players to accept tpa before request is cancelled.
#Set to 0 for no timeout
tpa-accept-cancellation: 0
#Cancels a request made by tpa / tpc on world change to prevent cross world tp
cancel-tp-requests-on-world-change: false
#Delay to wait before people can cause attack damage after logging in #Delay to wait before people can cause attack damage after logging in
login-attack-delay: 5 login-attack-delay: 5
#Set the max fly speed, values range from 0.1 to 1.0
max-fly-speed: 0.8
#Set the maximum amount of mail that can be sent within a minute.
mails-per-minute: 1000
############################################################ ############################################################
# +------------------------------------------------------+ # # +------------------------------------------------------+ #
# | EssentialsHome | # # | EssentialsHome | #
# +------------------------------------------------------+ # # +------------------------------------------------------+ #
############################################################ ############################################################
# If no home is set, send players to spawn when /home is used
spawn-if-no-home: true
# Allows people to set their bed at daytime # Allows people to set their bed at daytime
update-bed-at-daytime: true update-bed-at-daytime: true
# Set to true to enable per-world permissions for using homes to teleport between worlds # Set to true to enable per-world permissions for using homes to teleport between worlds
# This applies to the /home only. # This applies to the /home only.
# Give someone permission to teleport to a world with essentials.world.<worldname> # Give someone permission to teleport to a world with essentials.worlds.<worldname>
world-home-permissions: false world-home-permissions: false
# Allow players to have multiple homes. # Allow players to have multiple homes.
# Players need essentials.sethome.multiple before they can have more than 1 home, default to 'default' below. # Players need essentials.sethome.multiple before they can have more than 1 home, defaults to 'default' below.
# Define different amounts of multiple homes for different permissions, e.g. essentials.sethome.multiple.vip # Define different amounts of multiple homes for different permissions, e.g. essentials.sethome.multiple.vip
# People with essentials.sethome.multiple.unlimited are not limited by these numbers. # People with essentials.sethome.multiple.unlimited are not limited by these numbers.
sethome-multiple: sethome-multiple:
@@ -370,6 +360,7 @@ starting-balance: 0
# These are now defined in worth.yml # These are now defined in worth.yml
# Defines the cost to use the given commands PER USE # Defines the cost to use the given commands PER USE
# Some commands like /repair have sub-costs, check the wiki for more information.
command-costs: command-costs:
# /example costs $1000 PER USE # /example costs $1000 PER USE
#example: 1000 #example: 1000
@@ -399,9 +390,9 @@ economy-log-enabled: false
# Show other plugins commands in help # Show other plugins commands in help
non-ess-in-help: true non-ess-in-help: true
# Hide plugins which don't give a permission # Hide plugins which do not give a permission
# You can override a true value here for a single plugin by adding a permission to a user/group. # You can override a true value here for a single plugin by adding a permission to a user/group.
# The individual permission is: essentials.help.<plugin>, anyone with essentials.* or '*' will see all help this setting reguardless. # The individual permission is: essentials.help.<plugin>, anyone with essentials.* or '*' will see all help regardless.
# You can use negative permissions to remove access to just a single plugins help if the following is enabled. # You can use negative permissions to remove access to just a single plugins help if the following is enabled.
hide-permissionless-help: true hide-permissionless-help: true
@@ -416,21 +407,21 @@ chat:
# If EssentialsChat is installed, this will define how far a player's voice travels, in blocks. Set to 0 to make all chat global. # If EssentialsChat is installed, this will define how far a player's voice travels, in blocks. Set to 0 to make all chat global.
# Note that users with the "essentials.chat.spy" permission will hear everything, regardless of this setting. # Note that users with the "essentials.chat.spy" permission will hear everything, regardless of this setting.
# Users with essentials.chat.shout can override this by prefixing text with an exclamation mark (!) # Users with essentials.chat.shout can override this by prefixing text with an exclamation mark (!)
# Or with essentials.chat.question can override this by prefixing text with a question mark (?) # Users with essentials.chat.question can override this by prefixing text with a question mark (?)
# You can add command costs for shout/question by adding chat-shout and chat-question to the command costs section." # You can add command costs for shout/question by adding chat-shout and chat-question to the command costs section."
radius: 0 radius: 0
# Chat formatting can be done in two ways, you can either define a standard format for all chat # Chat formatting can be done in two ways, you can either define a standard format for all chat
# Or you can give a group specific chat format, to give some extra variation. # Or you can give a group specific chat format, to give some extra variation.
# If set to the default chat format which "should" be compatible with ichat. # If set to the default chat format which "should" be compatible with ichat.
# For more information of chat formatting, check out the wiki: http://ess.khhq.net/wiki/Chat_Formatting # For more information of chat formatting, check out the wiki: http://wiki.ess3.net/wiki/Chat_Formatting
format: '<{DISPLAYNAME}> {MESSAGE}' format: '<{DISPLAYNAME}> {MESSAGE}'
#format: '&7[{GROUP}]&f {DISPLAYNAME}&7:&f {MESSAGE}' #format: '&7[{GROUP}]&r {DISPLAYNAME}&7:&r {MESSAGE}'
group-formats: group-formats:
# Default: '{WORLDNAME} {DISPLAYNAME}&7:&f {MESSAGE}' # Default: '{WORLDNAME} {DISPLAYNAME}&7:&r {MESSAGE}'
# Admins: '{WORLDNAME} &c[{GROUP}]&f {DISPLAYNAME}&7:&c {MESSAGE}' # Admins: '{WORLDNAME} &c[{GROUP}]&r {DISPLAYNAME}&7:&c {MESSAGE}'
# If you are using group formats make sure to remove the '#' to allow the setting to be read. # If you are using group formats make sure to remove the '#' to allow the setting to be read.
@@ -441,41 +432,6 @@ chat:
############################################################ ############################################################
protect: protect:
# Database settings for sign/rail protection
# mysql or sqlite
# We strongly recommend against using mysql here, unless you have a good reason.
# Sqlite seems to be faster in almost all cases, and in some cases mysql can be much slower.
datatype: 'sqlite'
# If you specified MySQL above, you MUST enter the appropriate details here.
# If you specified SQLite above, these will be IGNORED.
username: 'root'
password: 'root'
mysqlDb: 'jdbc:mysql://localhost:3306/minecraft'
# For which block types would you like to be alerted?
# You can find a list of IDs in plugins/Essentials/items.csv after loading Essentials for the first time.
# 10 = lava :: 11 = still lava :: 46 = TNT :: 327 = lava bucket
alert:
on-placement: 10,11,46,327
on-use: 327
on-break:
blacklist:
# Which blocks should people be prevented from placing
placement: 10,11,46,327
# Which items should people be prevented from using
usage: 327
# Which blocks should people be prevented from breaking
break:
# Which blocks should not be pushed by pistons
piston:
# General physics/behavior modifications # General physics/behavior modifications
prevent: prevent:
lava-flow: false lava-flow: false
@@ -527,20 +483,15 @@ protect:
ocelot: false ocelot: false
iron_golem: false iron_golem: false
villager: false villager: false
wither: false
bat: false
witch: false
# Maximum height the creeper should explode. -1 allows them to explode everywhere. # Maximum height the creeper should explode. -1 allows them to explode everywhere.
# Set prevent.creeper-explosion to true, if you want to disable creeper explosions. # Set prevent.creeper-explosion to true, if you want to disable creeper explosions.
creeper: creeper:
max-height: -1 max-height: -1
# Protect various blocks.
protect:
# Protect all signs
signs: true
# Prevent users from destroying rails
rails: true
# Blocks below rails/signs are also protected if the respective rail/sign is protected. # Blocks below rails/signs are also protected if the respective rail/sign is protected.
# This makes it more difficult to circumvent protection, and should be enabled. # This makes it more difficult to circumvent protection, and should be enabled.
# This only has an effect if "rails" or "signs" is also enabled. # This only has an effect if "rails" or "signs" is also enabled.
@@ -581,16 +532,8 @@ protect:
# Should the damage after hit by a lightning be disabled? # Should the damage after hit by a lightning be disabled?
lightning: false lightning: false
# Should people with build: false in permissions be allowed to build # Should Wither damage be disabled?
# Set true to disable building for those people wither: false
build: true
# Should people with build: false in permissions be allowed to use items
# Set true to disable using for those people
use: true
# Should we tell people they are not allowed to build
warn-on-build-disallow: true
# Disable weather options # Disable weather options
weather: weather:
@@ -598,6 +541,49 @@ protect:
thunder: false thunder: false
lightning: false lightning: false
############################################################
# +------------------------------------------------------+ #
# | EssentialsAntiBuild | #
# +------------------------------------------------------+ #
############################################################
# Disable various default physics and behaviors
# Should people with build: false in permissions be allowed to build
# Set true to disable building for those people
# Setting to false means EssentialsAntiBuild will never prevent you from building
build: true
# Should people with build: false in permissions be allowed to use items
# Set true to disable using for those people
# Setting to false means EssentialsAntiBuild will never prevent you from using
use: true
# Should we tell people they are not allowed to build
warn-on-build-disallow: true
# For which block types would you like to be alerted?
# You can find a list of IDs in plugins/Essentials/items.csv after loading Essentials for the first time.
# 10 = lava :: 11 = still lava :: 46 = TNT :: 327 = lava bucket
alert:
on-placement: 10,11,46,327
on-use: 327
on-break:
blacklist:
# Which blocks should people be prevented from placing
placement: 10,11,46,327
# Which items should people be prevented from using
usage: 327
# Which blocks should people be prevented from breaking
break:
# Which blocks should not be pushed by pistons
piston:
############################################################ ############################################################
# +------------------------------------------------------+ # # +------------------------------------------------------+ #
# | Essentials Spawn / New Players | # # | Essentials Spawn / New Players | #
@@ -616,7 +602,7 @@ newbies:
spawnpoint: newbies spawnpoint: newbies
# Do we want to give users anything on first join? Set to '' to disable # Do we want to give users anything on first join? Set to '' to disable
# This kit will be given regardless of cost, and permissions. # This kit will be given regardless of cost, and permissions.
#kit: '' #kit: ''
kit: tools kit: tools

View File

@@ -149,6 +149,13 @@ public class EssentialsProtectEntityListener implements Listener
{ {
event.setCancelled(true); event.setCancelled(true);
} }
if (cause == DamageCause.WITHER
&& (Permissions.PREVENTDAMAGE_WITHER.isAuthorized(user))
&& !Permissions.PREVENTDAMAGE_NONE.isAuthorized(user))
{
event.setCancelled(true);
return;
}
} }
} }

View File

@@ -22,6 +22,7 @@ public enum Permissions implements IPermission
PREVENTDAMAGE_FIRE(PermissionDefault.FALSE), PREVENTDAMAGE_FIRE(PermissionDefault.FALSE),
PREVENTDAMAGE_DROWNING(PermissionDefault.FALSE), PREVENTDAMAGE_DROWNING(PermissionDefault.FALSE),
PREVENTDAMAGE_LIGHTNING(PermissionDefault.FALSE), PREVENTDAMAGE_LIGHTNING(PermissionDefault.FALSE),
PREVENTDAMAGE_WITHER(PermissionDefault.FALSE),
PREVENTDAMAGE_NONE(PermissionDefault.FALSE), PREVENTDAMAGE_NONE(PermissionDefault.FALSE),
USEFLINTSTEEL(PermissionDefault.TRUE); USEFLINTSTEEL(PermissionDefault.TRUE);
private static final String base = "essentials.protect."; private static final String base = "essentials.protect.";

View File

@@ -76,7 +76,7 @@
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<bukkit.version>1.3.2-R2.1-SNAPSHOT</bukkit.version> <bukkit.version>1.4.2-R0.1-SNAPSHOT</bukkit.version>
<build.number>Unknown</build.number> <build.number>Unknown</build.number>
<org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>true</org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs> <org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>true</org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>
<org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>2</org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width> <org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>2</org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>