Configuration
Configuration
Penalties explanation
- You can use - or + numbers in your penalties. Example: -8, 0, 6, -4, 2
- The numbers are counted in half hearts. So -6 does a damage of 3 hearts and 4 heals 2 hearts
- Variables are supported also: %g Example:
HealthAttackedPlayer: '0' # Changes Health of a attacked player IF the attacking player is not allowed to hit him/her HealthAttackingPlayer: '-5' # Changes Health of the attacking players if they attack someone they are not allowed to CannotBeAttacked: The player %p can't be attacked by anyone. # Message to all attackers who try to hit someone they are not allowed to NoPermAttackAnyone: You are not allowed to attack anyone. # Message for all players that can't attack anyone on the server GroupNoPermAttackAnyone: The group %g is not allowed to attack anyone! # If a player is in a group which cant attack anyone then he/she will get this message on the chat Group1NoPermAttackGroup2: group %g1 is not allowed to attack the group %g2! # This message will be send to a player that is in group1 and tries to attack someone from group2 logInConsole: true # Should GroupBasedPvP log stuff in the console?
Config explanation
- The config format is: AttackerGroup: AttackedGroup
- Use for each config a new line
- Wildcards '*' are supported
Example:
Guest: Admin # The group "Guest" cant attack the group "Admin" but the group "Admin" can attack the group "Guest" Citizens: VIP # The group "Citizens" cant attack the group "VIP" but the group "VIP" can attack the group "Citizens" VIP: Admin # The group "VIP" cant attack the group "Admin" but the group "Admin" can attack the group VIP" '*': Admin # The group "Admin" cant be attack from any group but the group "Admin" can attack anyone Guest: '*' # The group "Guest" cant attack any other group but the other groups can attack "Guest"
can you give me complete examples of config.yml and world_the_end.yml
2012-08-20 16:10:06 [INFO] [GroupBasedPVP] Enabling GroupBasedPVP v2.0-Beta-Build1
2012-08-20 16:10:06 [INFO] [GroupBasedPVP] Using Vault!
2012-08-20 16:10:06 [INFO] [GroupBasedPVP] config.yml and settings.yml loaded.
2012-08-20 16:10:06 [INFO] [GroupBasedPVP] WorldGuard region handling enabled!
2012-08-20 16:10:06 [INFO] [GroupBasedPVP] Loaded world configuration in 'VASLOR.yml'.
2012-08-20 16:10:06 [INFO] [GroupBasedPVP] Loaded world configuration in 'VASLOR_nether.yml'.
2012-08-20 16:10:06 [SEVERE] Error occurred while enabling GroupBasedPVP v2.0-Beta-Build1 (Is it up to date?)
java.lang.NullPointerException
at de.HomerBond005.GroupBasedPVP.GBP.reload(GBP.java:189)
at de.HomerBond005.GroupBasedPVP.GBP.onEnable(GBP.java:74)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:365)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:265)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:247)
at net.minecraft.server.MinecraftServer.i(MinecraftServer.java:296)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:275)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:225)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:140)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
I have make a advance config and a got som errors. Permissions have non priority and it wont work for me becuse evreyone kill evreyone
this is my config.yml
AttackerGroup: AttackedGroup
gmember: gmember
gmember: gtmoderator
gmember: gmoderator
gmember: gadmin
gtmoderator: gmember
gtmoderator: gtmoderator
gtmoderator: gmoderator
gtmoderator: gadmin
gmoderator: gmember
gmoderator: gtmoderator
gmoderator: gmoderator
gmoderator: gadmin
gadmin: gmember
gadmin: gtmoderator
gadmin: gmoderator
gadmin: gadmin
pmember: pmember
pmember: ptmoderator
pmember: pmoderator
pmember: padmin
ptmoderator: pmember
ptmoderator: ptmoderator
ptmoderator: pmoderator
ptmoderator: padmin
pmoderator: pmember
pmoderator: ptmoderator
pmoderator: pmoderator
pmoderator: padmin
padmin: pmember
padmin: ptmoderator
padmin: pmoderator
padmin: padmin
ymember: ymember
ymember: ytmoderator
ymember: ymoderator
ymember: yadmin
ytmoderator: ymember
ytmoderator: ymoderator
ytmoderator: ytmoderator
ytmoderator: yadmin
ymoderator: ymember
ymoderator: ytmoderator
ymoderator: ymoderator
ymoderator: yadmin
yadmin: ymember
yadmin: ytmoderator
yadmin: ymoderator
yadmin: yadmin
donator: donator
donatorp: donator
donator: doantorp
donatorp: donatorp
{
"ymoderator": "yadmin",
"pmember": "padmin",
"pmoderator": "padmin",
"gmember": "gadmin",
"yadmin": "yadmin",
"AttackerGroup": "AttackedGroup",
"donator": "doantorp",
"ymember": "yadmin",
"gmoderator": "gadmin",
"gtmoderator": "gadmin",
"gadmin": "gadmin",
"padmin": "padmin",
"donatorp": "donatorp",
"ptmoderator": "padmin",
"ytmoderator": "yadmin"
}
Its like this
0 1
--1 1 =1
2 2 =2
-1 1 =12
1 12 =12