What is "PunchEffects" PunchEffects is a plugin that make possible to add any effects from the damage of player against an other player. Initially made for a spigot user who was looking for this kind of features and now available for the public!
Features
Make your own effects with custom permissions
Usage of duration and level for each different effect
Cumulative effects by giving multiple permissions to the player
Give a timed effect to a player
Set a specific item for each effect
Set a cool-down for each effect
Set trigger chances for each effect
Projectiles support
WorldGuard 7 support
Extra health bar support (1.13+)
Custom item give command
No-permission effect support
Fully customizable with configs and messages files
How to install
Download the latest version of the plugin
Place the downloaded .jar file in your server plugin folder
Compile the code with your IDE or javac command line
Enjoy !
N.B.: This version is not supported anymore, it will not receive futur updates
Commands
/puncheffects » Display help page of the plugin
/puncheffects giveitem <effect> » Give the custom item effect
/puncheffects gte <player> <effect> <time> » Give an effect to a player for a give time
/puncheffects rte <player> <effect> » Remove a given effect from a player
/puncheffects help » Display help page of the plugin
/puncheffects reload » Reload the plugin
Messages and Configs Files
Code (YAML):
prefix: "&c[&aPunch&6Effects&c] &r" reload-command: -
"&2Plugin reloaded!" help-page: -
"&d/puncheffects &c» &2Display this help page" -
"&d/puncheffects gi <effect> &c» &2Give the custom effect item" -
"&d/puncheffects gte <player> <effect> <time> &c» &2Give an effect to a player for a give time" -
"&d/puncheffects rte <player> <effect> &c» &2Remove a given effect from a player" -
"&d/puncheffects help &c» &2Display this help page" -
"&d/puncheffects reload &c» &2Reload the plugin" weapon-given: -
"&2You got the weapon related to the &d{effect} &2effect!" timed-effect-given: -
"&2You gave the &d{effect} &2effect to &b{receiver} &2for &d{time}&2!" timed-effect-received: -
"&2You received the &d{effect} &2effect from &b{giver} &2for &d{time}&2!" timed-effect-revoked: -
"&2You revoked the &d{effect} &2effect from &b{player}!" effects-list-header: "&2Available PunchEffects:" effects-list-color: "&a" errors:
unknown-effect: -
"&cThe effect &d{effect} &cdoesn't exists in the configs!" no-item-give: -
"&cThere is no item to give with the typed effect name!" no-item-input: -
"&cPlease, input an effect to get the custom item from it!" not-enough-permissions: -
"&cSorry, but you don't have enough permissions to do that!" must-be-player: -
"&cYou must a player to execute this command!" non-existing-effect: -
"&cThe effect &d{effect} &cdoesn't seems to exists!" player-empty-effects-list: -
"&b{player} &chas no timed effect!" effect-not-listed: -
"&cThe effect &d{effect} &cis not owned by &b{player}&c!"
Code (YAML):
# Here is an example of how you set up a new effect per permission # You can find all the available effects on the plugin page under the spoiler "Available Effects" # You can find all the available item material here https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html (1.15.2 for other version please refer to the proper documentation!) # Simply add the name of the material under the column "Enum Constant" in the documentation #=---------------------------------=# # punch_effects: # # effectname1: # # use_permission: true # # permission: permission1 # # effect: "SMITE" # # holding_item: # # material: "ANY" # # only_arrow: false # # display_name: "NONE" # # lore: # # - "A LORE LINE 1" # # - "A LORE LINE 2" # # mob_effect: true # # damager_effect: true # # victim_effect: true # # worldguard_check: true # # duration: 99999 (seconds) # # level: 3 # # cooldown: 15 (seconds) # # trigger_chances: 100 (%) # #=---------------------------------=# punch_effects:
smite:
use_permission: true
permission: peffects.smite
effect: "SMITE" holding_item:
material: "DIAMOND_SWORD" # "only_arrow" option Will only be read if the material is set to "PROJECTILE" only_arrow: false
display_name: "Smite Sword" lore: [] mob_effect: true
damager_effect: true
victim_effect: true
worldguard_check: true
duration: 5
level: 1
cooldown: 15
trigger_chances: 100
heal:
use_permission: true
permission: peffects.heal
effect: "REGENERATION" holding_item:
material: "DIAMOND_SWORD" display_name: "Heal Sword" lore: [] mob_effect: true
damager_effect: true
victim_effect: true
worldguard_check: true
duration: 60
level: 1
cooldown: 15
trigger_chances: 100
Effects and Materials
Code (Text):
ABSORPTION » Increases the maximum health of an entity with health that cannot be regenerated, but is refilled every 30 seconds.
BAD_OMEN » oof.
BLINDNESS » Blinds an entity.
CONDUIT_POWER » Effects granted by a nearby conduit.
CONFUSION » Warps vision on the client.
DAMAGE_RESISTANCE » Decreases damage dealt to an entity.
DOLPHINS_GRACE » Squee'ek uh'k kk'kkkk squeek eee'eek.
FAST_DIGGING » Increases dig speed.
FIRE_RESISTANCE » Stops fire damage.
GLOWING » Outlines the entity so that it can be seen from afar.
HARM » Hurts an entity.
HEAL » Heals an entity.
HEALTH_BOOST » Increases the maximum health of an entity.
HERO_OF_THE_VILLAGE » \o/.
HUNGER » Increases hunger.
INCREASE_DAMAGE » Increases damage dealt.
INVISIBILITY » Grants invisibility.
JUMP » Increases jump height.
LEVITATION » Causes the entity to float into the air.
LUCK » Loot table luck.
NIGHT_VISION » Allows an entity to see in the dark.
POISON » Deals damage to an entity over time.
REGENERATION » Regenerates health.
SATURATION » Increases the food level of an entity each tick.
SLOW » Decreases movement speed.
SLOW_DIGGING » Decreases dig speed.
SLOW_FALLING » Slows entity fall rate.
SPEED » Increases movement speed.
UNLUCK » Loot table unluck.
WATER_BREATHING » Allows breathing underwater.
WEAKNESS » Decreases damage dealt by an entity.
WITHER » Deals damage to an entity over time and gives the health to the shooter.
FIRE or FLAME » Burn the entity.
SMITE » Remove all the entity effects.
VAMPIRE » Health the entity to the amount of damage given/received
STEAL » Steal all the effect from a player victim ONLY
KNOCKBACK » Make your oponnent fly away
Code (Text):
ANY » Make the damage effect working with any items/projectiles
HAND » Make the damage effect working only by punching it with hands
PROJECTILE » Make the damage effect working only by throwing a projectile to an entity
Permissions
puncheffects.giveitem (/puncheffects giveitem)
puncheffects.givetempeffect (/puncheffects gte)
puncheffects.removetempeffect (/puncheffects rte)
puncheffects.reload (/puncheffects reload)
Servers using this plugin
Add your server now!
(if you want your server listed here, feel free to ask for it)
Code (Text):
• Effects affecting mobs option (Added - 0.1.0)
• Effects affecting damager option (Added - 0.1.0)
• Adding a WorldGuard support (Added - 0.1.1)
• Per item effects (Added - 0.2.0)
• Smite effect which remove all effects from an entity (Added - 0.2.0)
• Vampire effect which restore your health from the damage you made (Added - 0.3.0)
• Per effect cool-down system (Added - 0.4.0)
• Per effect chance of trigger system (Added - 0.4.0)
• Projectile effect support (Added - 0.5.0)
• Only arrow option for "PROJECTILE" material (Added - 0.5.1)
• No permission option (Added - 0.6.0)
• Custom item give command (Added - 0.6.0)
• Steal effect which steal all the effects from a player victim (Added - 0.7.0)
• Effect temp-give command (Added - 0.8.0)
• Effects list command (Added - 0.9.0)