Infinite Potion Effects Activated by Permissions

Discussion in 'Archived: Plugin Requests' started by SeroeCraft, Jun 3, 2013.

  1. Offline

    SeroeCraft

    So there is already a plugin like this (PermanentPotions), however, it does not have all of the details I require and also does not work for me (Java doesn't work, I have a Mac 10.6.8).

    Plugin category: Potion Effects

    Suggested name: InfinitePotions

    What I want: Permissions that assign infinite potion effects, in different strengths (1, 2, and 3). For example, if I have infinitepotions.speed.three and infinitepotions.digspeed.two, I would have Speed 3 and DigSpeed 2 for the entire time I am in game. They never wear off. Make sure to include all of the possible effects, positive and negative.

    Also, I do not want the bubble effects hovering above the players' heads.

    In addition, in the config file, I'd like an option to turn on Effect Additions. If this is set to true, then if the player has infiniteeffects.speed.three, and drinks a Speed 3 potion, they will have Speed 6 (I'm not sure if this is possible though).

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: Base: infiniteeffects.effect.potency. For effects, substitute in a potion effect, and for potency, substitute in the strength (one, two, or three). Ex: infiniteeffects.speed.three, infinitepotions.digspeed.two, etc.

    When I'd like it by: ASAP
     
  2. Offline

    robotpenguin56

    If I understand you correctly, then this is already possible in vanilla. The command is /effect (player) (type) (durability) (Strength). If you use command blocks, you could do "/effect @a" so that if effects everyone.
     
  3. Offline

    SeroeCraft

    Not exactly. I don't want any commands to be involved. If the player has the permission for the effect, it should permanently be applied to their in game character.
     
  4. Offline

    Prorockband

    Don't take my word as the truth as im no coder but from what I know I don't think its possible to have effects without the bubbles. Again im not a coder but that's just my thought
     
  5. Offline

    SeroeCraft

    If not, it's no big deal. No bubbles is my preference though.
     
  6. Offline

    WolfClash

    You don't want any commands to be involved with it? So they forever have potions and it never ends unless you uninstall the plugin?
     
  7. Vanilla or Bukkit has this... Just put the length and amplifier to what ever you want.
    PHP:
    /effect
     
  8. Offline

    robotpenguin56

    what permissions are you talking about? you could have it so the command block gets powered on a loop so that as soon as they are able they would get the effect without any commands involved. Or you could get someone to make a plugin.
     
  9. Offline

    SeroeCraft

    Yes, I'd like someone to make the plugin. I don't think you guys understand what I'm asking. I want different potion permissions for everyone. I have a ranking system idea so that if you are in group Red, you have more speed, strength, digspeed; Blue would be less strength, but can use magic (I have the magic part done); and Green would have more speed (less than red) and more strength (less than red), but can also shapeshift. I can't do this without this plugin, and command blocks will not work. InspectorFacepalm robotpenguin56
     
  10. You can do this with a command
    /effect
     
  11. Offline

    SeroeCraft

    I want it to be automatic, without commands.
     
  12. Offline

    rsod

    I'll do it. I wanted to do it anyway.
     
  13. Offline

    whitehooder

  14. Offline

    rsod

    http://sudl.rsod.org/infinitepotions.jar
    Config file:
    maxAmplifier - maximum amplifier for which player will be checked, starting from 0 - meaning just first level of effect. Incrementing it by one adding 20 extra checks per player so only set it to values which you will use! setting to extremely high values can cause lags.
    taskInterval - how often players will be checked for permissions in ticks, 20 ticks = 1 second, lower value - more often checks, more resources needed. Lower it only if you have problem with some another plugin overwriting it too often (/heal, or milk, or too often deathes). Default is 400 so it's 20 seconds.
    Permissions:
    infinitepotion.POTION_EFFECT_TYPE.AMPLIFIER
    Example:
    infinitepotion.JUMP.1
    - grant jump boost level II

    Effect types: http://jd.bukkit.org/rb/apidocs/org/bukkit/potion/PotionEffectType.html
    Debugging command: /infinitepotions

    Bubble effects are client-side so nothing to do with them
    timed potion addition is actually possible, but I can't promise that I'll do it
    will post to bukkitdev later
     
  15. Offline

    SeroeCraft

    Thank you so much!
     

Share This Page