What is Modifiers? Modifiers is a plugin that can grant players potion effects or even run a command when they kill another player. It makes PvP more interesting.
Configuration Sorry if configuration is a little confusing, this is my first time working with configs to this extent
Code (YAML):
# _ _ _ _ #| | | | ___| | | ___ #| |_| |/ _ \ | |/ _ \ #| _ | __/ | | (_) | #|_| |_|\___|_|_|\___/ # #Wecome to modifier config, here you can create modifiers, sorry if it is confusing, this is my first time working with configs to this extent #You can find the Potion Effect types on https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html # #Support Discord: https://discord.gg/newXfqthCn Modifiers:
onKillRegeneration:
Modifier-Name: "KillRegen"#Sets the ingame modifier name Modifier-Description: #Set the modifier description for the /modifiers GUI -
"&7The KillRegen modifier will" -
"&7grant a player &e&lREGENERATION" -
"&a2 &7for &c5 &7seconds." Effects:
Enabled: true
#Give an effect or not Potion-Effect: "REGENERATION"#Sets the type of effect to give the player Potion-Level: 2
#The potion effect level Effect-Time: 5
#Potion time (In seconds) Chance: 100
#Grants a 1 in ### chance to get effect, set to 1 to disable Commands:
Enabled: false
#Run a command or not Chance: 100
#Grants a 1 in ### chance to run the command, set to 1 to disable Run-Command: #Command to run. %Player% = Killer - No "/" Needed -
"testcommand %Player%"
onKillCommand:
Modifier-Name: "KillCommand" Modifier-Description: -
"&7The KillCommand modifier will" -
"&7run a command when a player" -
"&7is killed" Effects:
Enabled: false
Potion-Effect: "SPEED" Potion-Level: 2
Effect-Time: 5
Chance: 100
Commands:
Enabled: true
Chance: 100
Run-Command: -
"give %Player% diamond 1" -
"msg %Player% Gamemode set to CREATIVE"
# _ _ _ _ #| | | | ___| | | ___ #| |_| |/ _ \ | |/ _ \ #| _ | __/ | | (_) | #|_| |_|\___|_|_|\___/ # #This is the language config section of the modifier plugin, you can edit almost every message here. # #Translation by Bossslime # #Support Discord: https://discord.gg/newXfqthCn Errors:
NotHuman: "&cThis command can only be run by a player." NoPerms: "&cI'm sorry but you dont have permission to execute this command." NoActiveModifiers: "&c&lThere are currently no active modifiers."#This message can be disabled by setting it to null Normal:
Prefix: "&7[&cModifiers&7] " HelpMessage: -
"&7&m--------------------------" -
"&a&lModifier Help:" - "&cInfo: <> - Required |
[] - Optional
" - "&7
" - "&7- &a/modifier &7- &2Shows this help menu
" - "&7- &a/modifier toggle
[Modifier
] &7- &2Open the GUI to toggle modifiers or toggle a specific modifier
" - "&7- &a/modifier reload &7- &2Reload the modifier configs
" - "&7- &a/modifier language &7- &2Change the modifier plugin language
" - "&7- &a/modifiers &7- &2Open a GUI to list modifier info
" - "&7
" - "&7&m
--------------------------
"
ReloadMessage: "&aThe config has been successfully reloaded.
" HoverMessage: "&eUse \
"&c/modifiers&e\" to view active modifiers
"
If you want to translate for a language, please just let me know and I will add it here and give you credit for it.
Any bugs? I have tested it quite a bit, however that does not mean that it is bugless, if you find a bug please report it to me on my discord.
Discord
API? I do plan on adding an API to this plugin but for right now there is none.