Permanent Potion Effects Assigned By Permissions

Discussion in 'Archived: Plugin Requests' started by MichaelVelsion, Dec 29, 2012.

  1. Offline

    MichaelVelsion

    Title says it all - is this possible? I've been searching and the closest thing I can find was this plugin here, http://dev.bukkit.org/server-mods/speed-boost/

    But this only offers two possible permanent effects. I'd like this plugin because I want to create races on my server

    Orks - Permanent strength boost
    Elves - Permanet speed boost

    Etc ect, I think every server could benefit with a plugin like this.
     
  2. Offline

    Mozio

    I'm on it! If there is any certain commands / permissions you need, please let me know ASAP. And the certain effects you would like this plugin to have.

    -Keiran
     
  3. Offline

    MichaelVelsion

    No commands needed as the potion effect should be activated 24/7 for the player.

    Permissions could be something like

    potion.effect.speed.1 (A bit faster)
    potion.effect.speed.2 (more faster)
    potion.effect.speed.3 ( lots faster)

    Kinda like how that plugin I linked can do different strengths of the effect.

    Potion effects I would like - if possible.

    Speed
    Slowness
    Strength
    Jump
    Nausea
    Resistance
    Water Breathing
    Blindness
    Night Vision
     
  4. Offline

    LaxWasHere

    This is actually a nice idea.
     
  5. Offline

    Mozio

    MichaelVelsion
    So you want all them permissions for each potion effect?

    Example:
    Strength - potion.effect.strength.1/2/3
    Jump - potion.effect.jump.1/2/3

    Correct me if i'm wrong
     
  6. Offline

    Byamarro

    It could be nice also for me. SlowDigging effect please :)
     
  7. Offline

    MichaelVelsion

    As long as I could give different strengths of effects to different groups, so yeah.

    So like

    [Baby Ork]
    potion.effect.strength.1

    [Big Ork]
    potion.effect.strength.2

    [King of The Ork]
    potion.effect.strength.3
     
  8. Offline

    Mozio

    Done!

    BukkitDev:http://dev.bukkit.org/server-mods/potionpermissions/
    Direct Download: https://www.dropbox.com/s/ijrm06spyte5fio/PotionPermissions.jar

    Permissions are exactly how you requested!
    It has been tested against 1.4.6 and works perfectly but if you find any bugs please submit a ticket on the BukkitDev page!

    -Mozio

    EDIT: It was a collaborative effort by myself and my friend who are coming together to form a Plugin Development team 'Monesocket' if you would like to support us, please follow Minesocket on the forums as we would greatly appreciate it. Thanks!
     
  9. Offline

    MichaelVelsion

    Edit: didn't see it - I'm testing now.

    Okay, when I made a group - it applied every single permission effect possible ( I believe ).

    I think its because I'm op and op's get all permissions therefore I had every permission on me.

    Okay, so I re made it - and the rank 'Elven Warrior' has the permission for speed.

    It granted the speed boost on login - but didn't refresh on inventory open - But when I was op - the effects refreshed on inventory open.

    If I log in and back out - the potion effect is re-applied.

    Any idea on why its not refreshing on inv?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  10. Offline

    Mozio

    Umm, let me have a look, it worked for me. And we fixed the 'OP gets all perms' bug. That was really annoying, and i will look into it now before i go to sleep

    Updated. Took default: op off and it should reset when inventory closed! I have tested it https://www.dropbox.com/s/ijrm06spyte5fio/PotionPermissions.jar

    Have any problems please get back to me. Thanks

    -Mozio

    Does it work?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
  11. Offline

    dillyg10

    Honestly, Bukkit/MC should have some sort of API for a perminant potion effect, the ways that you can do it are a tad buggy :p.
     
  12. Offline

    MichaelVelsion

    Doesn't reset when using inventory - only resets on log in and out atm
     
  13. Offline

    3DDarren

  14. Offline

    RingOfStorms

    xxldoener and Mozio like this.
  15. Offline

    MistPhizzle Retired Staff

    Mozio likes this.
  16. Offline

    agitatedgremlin

    Does anyone know how to update this for the current Bukkit
    ? I'd love to use this plugin!
     
  17. Offline

    Mozio

    We are back now as i have been away but we will have this updated soon!
     
  18. Offline

    SeroeCraft

    I have an error with PotionPermissons.

    Code:
    16:58:18 [SEVERE] Could not load 'plugins/PotionPermissions.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ClassNotFoundException: Failed to remap class net.minesocket.potionpermissions.PotionPermissions
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:307)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231)
        at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:268)
        at org.bukkit.craftbukkit.v1_5_R3.CraftServer.<init>(CraftServer.java:246)
        at net.minecraft.server.PlayerList.<init>(PlayerList.java:55)
        at net.minecraft.server.DedicatedPlayerList.<init>(SourceFile:11)
        at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:58)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:393)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:573)
    Caused by: java.lang.ClassNotFoundException: Failed to remap class net.minesocket.potionpermissions.PotionPermissions
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:89)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:34)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:249)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
        ... 9 more
    Caused by: java.lang.UnsupportedClassVersionError: net/minesocket/potionpermissions/PotionPermissions : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:80)
        ... 15 more
    
    So I'm pretty sure this is because the plugin isn't up to date, but I don't know code so I'm not sure. If it is, could someone update this for me? If not, can you tell me how I can fix it?

    Mozio
     
  19. Offline

    whitehooder

    SeroeCraft Think this is a Java version incompability. If you are on Java 6 try updating to 7, if not, please post back here.
     
  20. Offline

    SeroeCraft

    My mac is 10.6.8 so Java 7 isn't supported. Anything else I can do?

    whitehooder

    By the way, I used FakeMessager on my server a few months ago and it was great, I love it
     
    whitehooder likes this.
  21. Offline

    whitehooder

    SeroeCraft
    Well, only way to fix it is to compile it against Java 6, which should be done by you Mozio

    Glad you like FakeMessager SeroeCraft :)
     
  22. Offline

    SeroeCraft

    He hasn't been on since March so I doubt he's coming back. Is there anyone else capable of doing it? whitehooder
     
  23. Offline

    whitehooder

    Recompiled.
     
  24. Offline

    SeroeCraft

    Thank you! I'll test this when I get home. Did it work for you?
     
  25. Offline

    whitehooder

    I haven't tried it.
     
  26. Offline

    SeroeCraft

    Thank you so much! I tried it and it works beautifully.
     

Share This Page