SuperPotions
Give players potion effects with simple commands. Including custom effects! Now supports creating potions too! SuperPotions allows you to give yourself, others, or the whole server potion effects. SuperPotions has 23 different effects (All of them!) to choose from! With SuperPotions, you can give potion effects with a custom level and duration! Plus, you can remove potion effects in case you create a magical disaster or just want a fresh start.
Included potion effects are: blindness, confusion, resistance, haste, fireresistance, hunger, strength, jump, poison, regen, slow, fatigue, speed, breathing, weakness, heal, harm, invisibility, nightvision, wither, absorption, healthboost, saturation.
In order to use economy support, you must have vault. Link. Also make sure to delete old config files!
Features
- Use commands to give any player a potion effect with a custom duration and level
- Give players custom potions
- Give every player on the server the same effect with one command
- Remove all potion effects from a player
- Set maximum duration and level for effects
- Updating system with H31ix's Updater
- Now supports console and Command Block usage!!!
- Potion kits!!!
- Economy support!!!
- Ambient support
- Per Effect Permissions option
Commands
- /potion - Base command (Also you can use the sp, or pe aliases), shows you the help page.
- /potion effect <Effect Type> <Duration(seconds)> <Level> [Player] - Apply a custom potion effect to yourself or another player.
- /potion create <Effect Type> <Duration(seconds)> <Level> <Splash(true/false)> [player] - Gives a custom potion to yourself or another player.
- /potion add <Effect Type> <Duration(seconds)> <Level> - Add a custom effect to a potion.
- /potion kit [kitname] [Player] - Will show available kits and purchase if given a kit name.
- /potion all <Effect Type> <Duration(seconds)> <Level> (radius) - Apply a custom potion effect to all the server players or within a specified radius.
- /potion removeall [Player] - Removes all potion effects from you or another player.
- /potion list - Lists all the possible potion effects a user can choose from.
- /potion maxtime [seconds] - Sets/Displays the max duration of potion effects.
- /potion maxlevel [level] - Sets/Displays the max level of potion effects.
- /potion replaceeffects [true/false] - Sets/Displays whether commands will overwrite current effects.
- potion ambient [true/false] - Sets/Displays whether potion effect particles are transparent.
- /potion messages [true/false] - Sets/Displays whether to send messages to players.
- /potion reload - Reloads the config.
- /potion update - Downloads the newest plugin version.
Permissions
- superpotions.help - Permission to use /potion, this is needed for all commands!
- superpotions.effect - Permission to use /potion effect and /potion list commands.
- superpotions.effect.others - Permission to give effects to other players.
- superpotions.create - Permission to use /potion create, /potion add, and /potion list commands.
- superpotions.create.others - Permission to give other people custom potions.
- superpotions.kits - Permission to use the /potion kit command.
- superpotions.kits.others* - Permission to give kits to other players.
- superpotions.removeall - Permission to use the /potion removeall command.
- superpotions.removeall.others - Permission to remove all potion effects from other players.
- superpotions.all - Permission to use the /potion all command.
- superpotions.config - Permisson to use config editing commands.
- superpotions.update - Permission to update plugin to newest version.
Permission Groups
- superpotions.admin - Gives access to all SuperPotions commands!
- superpotions.effect
- superpotions.effect.others
- superpotions.create
- superpotions.create.others
- superpotions.kits
- superpotions.help
- superpotions.removeall
- superpotions.removeall.others
- superpotions.all
- superpotions.config
- superpotions.update
- superpotions.self - Gives access to all commands affecting the command sender (Can only give effects to themselves).
- superpotions.effect
- superpotions.create
- superpotions.kits
- superpotions.kits.others
- superpotions.help
- superpotions.removeall
Per Effect Permissions
Give the following permissions to players as you wish. Where "EFFECT" is equal to the effect name you type in for the command. Also if you wish to use this, change "effect-permissions" in the config to true.
superpotions.effect.EFFECT, superpotions.effect.others.EFFECT, superpotions.all.EFFECT, superpotions.create.EFFECT, and superpotions.create.others.EFFECT
If kit-permissions config value is set to true, then players need to have superpotions.kits.KITNAME
Updater settings
Superpotions uses Updater for update checking and automatic and semi-automatic download.
In order to enable Update checks that notify server admins the autoupdate-check config option must be set to true. To have updates downloaded automatically and installed on server restart/reload set the autoupdate-download config option to true. If you wish to disable automatic updates and checks set both values to false.
New Feature Ideas
Add a removeall for every player on the serverAdd permissions per Potion effectAdd config with maximum valuesAdd more command aliases, like /sp e for /potion effectAdd version checker/updaterCreate potionsEconomy support with potion packages- Potions give players temporary permissions
Change Log
- v2.5
- /potion optin and /potion optout commands were added
- Alot of behind the scenes changes to improve the plugin
- v2.4
- Give kits to other players
- Fix economy bug
- v2.3
- Added kit permissions (superpotions.kits.KITNAME)
- Added kit-permissions config option
- v2.2
- Now allows effect permissions
- superpotions.effect.EFFECT, superpotions.effect.others.EFFECT, superpotions.all.EFFECT, superpotions.create.EFFECT, and superpotions.create.others.EFFECT
- v2.11
- Added ambient capabilities
- Updated to Updater 2.0
- v2.01
- Fixed version causing multiple downloads
- v2.00
- Added Kits and economy support (vault)
- v1.71
- Fixed tooltips and potion colors for potions that have colors
- v1.7
- New effects: absorption, healthboost, saturation
- Optional radius parameter in the all command
- v1.61
- Can add effects to potions using /potion add
- v1.6
- Can now create potions and splash potions
- New permissions
- Optimizations
- v1.51
- Updated Version
- v1.5
- Updated Updater
- Added configs for sending player messages
- Fixes bugs with FindBugs
- v1.4
- Added replaceeffects config option
- Added commands: /potion replaceeffects
- v1.3
- Added max level and duration config options
- Added commands: /potion maxlevel, /potion maxtime, /potion reload
- v1.2
- Supports 1.4.5
- Added updating system
- Added support for console and command blocks
- v1.1
- Supports 1.4.2 and new potion effects
- Added more Aliases like e, a, l, r, remove
- Added /potions removeall all command to remove potion effects from all players
- v1.0
- Initial release!
Special Thanks
- Theisman - For making the thumbnail and banner pictures.
Is it possible to add a kit command to give a kit to other players?
Is it possible to have an option in the config so that potions aren't stacked when given in a kit? The reason being is that there are ways to dupe items that are normally not stackable but can be duped if given to a player stacked.
Hello.
But i found other important error.
When a player have no money, the plugin give this error: An error occured: Loan was not permitted.
And player can buy potion kit with no money. Give a error but the plugin give the potions you.
@HGspindy
Okay, thanks for letting me know!
Hello. Was a permisionx bug, With last permisionx version work well.
@HGspindy
I'll take a look. Seems like something that may be out of my hands, but I'll check it out and see what I can do.
Hello.
There are a error with permisions in superpotions 2.3, permisionsex and bukkit 1.7.9:
superpotions.self permision work perfect, but when you put the permissions separately (superpotions.create, superpotions.kits,superpotions.help,superpotions.removeall) it dont work, it say: you have no permisions.
For exemple:
It work:
groups:
default:
default: true
prefix: '&b'
permissions:
- superpotions.self
- superpotions.kits.invisibility
It not work (it say:you have no permisions):
groups:
default:
default: true
prefix: '&b'
permissions:
- superpotions.removeall
- superpotions.kits
- superpotions.kits.invisibility
@Mallow445
Okay, I'll see what I can do on my end, but it sounds like bukkit may not be saving custom potion data properly.
I have noticed an issue when I reload/restart my server, the potion effects go away. For example: I have a regeneration 100 potion, when I restart the server the potion turns into a regeneration I potion. I own a kit pvp server, so this is getting a little annoying as the kits potions turn from blindness for 5 seconds to night vision splash potions every time I reload
@flaminyogurt
ok, thanks. Future feature perhaps for both the things mentioned?
@niels1189
If I have time, I'll look into seeing if hidden potion effects are possible, possibly make an add on plugin. As for permissions giving an effect, I don't support it but I do know their are other plugins that are designed specifically for that.
@flaminyogurt
If it's possible to add, that would be really great :) If not, then either way: great plugin!
Just to make sure if this is possible: Can you give a permission to a group / player to have haste 2 for instance? (forever) if so, what permissions do you use for it, since I saw this: superpotions.effect.EFFECT
but is it possible to specify a level too?
Group 1: superpotions.effect.haste.2 Group 2: superpotions.effect.haste.1
@niels1189
I'm not sure if that is possible without being really hacky about it.
@flaminyogurt
If you open your menu you won't be able to see the "Haste" or "Regeneration" effect. I know you can disable the particle effect already
@niels1189
By hidden, do you mean so they have the ambient particle effect, like beacons? Or they have absolutely no idea they have the effect?
Could you add a permission / config option / sub permission to make a potion effect hidden? I want a group to always have haste but I was wondering if it's possible to not make them be able to see that.
Can you add a GUI when you do /potion create ? So it would create a potion step by step.
@Swagg_killah
I submitted version 2.3 to bukkit. Which will include kit permissions. In order to use kit permissions, you must set the kit-permissions value in the config to true. After that give each player/group access to kits by giving them the permission "superpotions.kits.KITNAME".
@flaminyogurt
Ok thanks
@Swagg_killah
I thought there was a per kit permission option. I will check tonight and if there is not I will add that feature.