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 there any way to let players only use one of the kits like in different groups. I want one of my donation ranks to get acces to one of the potions and the other higher rank to get a better potion. Is there any way to do that?
Update coming soon, waiting on bukkit approval!
I haven't used this plugin yet, but I'm not sure if it will do what I'm looking for based on the info it gives. Does this allow the creation of custom potions with a permission node? For example, say I want brewing a potato and awkward potion to make a drinkable potion that gives the permission mcmmo.perks.xp.double for 2 minutes. Is that doable with this plugin? If not, it would be a feature I would suggest. I can't seem to find anything that does that.
@kryptonien
I will add this, I didn't think anyone wanted per effect permissions, but I will implement them.
Hi,
Do you plan on update this plugin and to make the permissions per effect soon ? Or could you share the sources if not.
Thx, kryptonien ^^
I don't get a example kit in my kits.yml? Someone please comment one for me?
@Ros3fir3
Can you tell me what command you are using?
In the kits.yml file there is an example kit, if you copy that and rename kitname to the name of your kit you will have a new kit. The cost will only be taken into effect if you are using an economy plugin with economy turned on. Under the potions section each '#' is a potion, here you can set a custom name, quantity, if it is splash, and the effects (level and duration). each effect will be on the same level with its attributes one tab in. Remember that when working with .yml files to use 4 spaces instead of tabs.
Hey, i just created a regen potion, it isn't effecting me or my dog/wolf whatever, and i really wanted my dog just to have infinite regen, is their something i'm doin' wrong? Also can you tell me how to create a kit?
@flaminyogurt Hey, I was wondering if you could add a feature which would allow a GROUP in it's entirety to maintain a potion effect. ETC . If i was to add the permission : superpotion.potionname.power ( superpotion.jump.two ) To a group it would then gain that potion. ( Can it also be infinite seeing as it is going onto the groups themselves ) An example of this is the lightweight plugin : http://dev.bukkit.org/bukkit-plugins/potionpermissions/ - They also have an open-source code so it would be easy to recreate if you fork it.
------PS: When potions are active, when the player drinks a potion of the same standard, would it be possible to make the potion activated from permissions of higher ranking, basically the one he drinks would respect it's authority; or you could just entirely not let them drink potions of the same calibre to their permissions one if you can't do that.@cobwebster
That is such a small feature and very few people would use it so it wont be officially implemented. But with a little creative thinking you could make this happen. Have the player spawn in an area where a command block gives them the effect, sets their spawn and teleports them to the actual starting area.
Great plugin, I was just wondering if there was a way to make it so when people join for the first time they get a potion effect?
@kryptonien
Thanks, im glad to see you actualy get to use it! This has been a fun project and im really proud of how it has turned out.
@flaminyogurt
Thanks, glad to see the update. I'm going to test it now.
I've already got vault but thanks for the information ;)
btw i like the custom potion ! Nice job.
you need to add a permission so that you can allow cetain people to have certain kits but i also need help with the kit permision cause how do i add differnt kits and stuff
@ninilac
You have to edit the kits file while the server is stopped/not running. Because the plugin loads the config when the server starts and then resaves it on disable. I think ill change it in the next update to only read and not write to the file. On how to add new kits, just copy everything that is already there and paste it to the end of the file and change what you want to customize.
Im sorry to anyone who has noticed (no one has said anything..) but the automatic update system i am using has trouble with the version 2.00. It loads has version 2.0 and then checks has 2.00 which to the plugin always appears newer. So it redownloads the plugin every restart or tells you there is a new update. I already uploaded version 2.01 which should fix that problem and im waiting for bukkit to approve it. Sorry for the inconvience.
How do we make new kits? My kits.yml file always resets on restart, do i need to save or something?
@godleydemon
Im sorry for the confusion, but superpotions does support all potion effect types. Nausea is called confusion, because that is the name for the effect in the code. Sorry again, but it is supported.
was going to use this and seen nausea wasn't in the list so I'm forgoing for now
@kryptonien
Sorry its been so long, i have been putting this feature off for a while...But i'm really happy with it now. SuperPotions now has kits and a config option to use economy in version 2.00. You must have vault to use the economy and make sure to delete any old config files.