Inactive [FUN/MECH] PlayerEffects v1.2 - potion effects with commands! [1.0.1-R1]

Discussion in 'Inactive/Unsupported Plugins' started by amunro, Jan 8, 2012.

  1. Offline

    amunro

    Description

    This plugin assigns all the potion effects to easy to use commands! Full details on the potion effects and what they do can be found here: http://www.minecraftwiki.net/wiki/Potion_effects

    How To Install

    1. Download from Bukkit Dev
    2. Copy into plugin directory
    3. Restart the server


    Permissions

    Code:
    - pe.*
        description: Access to all commands
        children:
          - pe.self.*
          - pe.other.*
    
    - pe.self:
        description: Allows you to effect yourself
        children:
          - pe.self.nausea
          - pe.self.regen
          - pe.self.resist
          - pe.self.fireresist
          - pe.self.waterbreathing
          - pe.self.hungy
          - pe.self.weak
          - pe.self.speed
          - pe.self.slow
          - pe.self.haste
          - pe.self.fatigue
          - pe.self.strength
          - pe.self.heal
          - pe.self.jump
          - pe.self.damage
          - pe.self.poison
          - pe.self.damage
          - pe.self.invisibility
          - pe.self.blind
          - pe.self.nightvision
    
    - pe.other:
        description: Allows you to effect others
        children:
          - pe.other.nausea
          - pe.other.regen
          - pe.other.resist
          - pe.other.fireresist
          - pe.other.waterbreathing
          - pe.other.hungy
          - pe.other.weak
          - pe.other.speed
          - pe.other.slow
          - pe.other.haste
          - pe.other.fatigue
          - pe.other.strength
          - pe.other.heal
          - pe.other.jump
          - pe.other.damage
          - pe.other.poison
          - pe.other.damage
          - pe.other.invisibility
          - pe.other.blind
          - pe.other.nightvision

    Commands

    • /pe - lists available effects
    • /pe <effect> - uses the effect on yourself
    • /pe <effect> [player] - uses the effect on [player]
    Effects

    • nausea - Player feels sick
    • regen - Players health regenerates faster
    • resist - Player takes less damage
    • fireresist - Player takes less fire damage
    • waterbreathing - Player deals more damage
    • hungy - Player consumes food
    • weak - Player deals less damage
    • speed - Player moves faster
    • slow - Player moves slower
    • haste - Player uses items faster
    • fatigue - Player uses items slower
    • strength - Player deals more damage
    • heal - Heals player to full health
    • jump - Player can jump higher
    • damage - Damages player
    • poison - Player takes poison damage
    • damage - Damages player
    • blind - Blinds player
    • invisibility - broken :(
    • nightvision - broken :(
    TO DO


    Per-effect permissions
    Add strength of effect to command
    Add duration of effect to command
    Config file
    Hook into worldguard so you can have a effect(s) turned on permanently within a region!

    Screenshot

    2012-01-08_19.19.09.png
     
    Kohle, beleg, efstajas and 1 other person like this.
  2. Offline

    efstajas

    great, thanks! :D
     
  3. Offline

    Adrenaline

    Looks nice, but add permissions to effects

    example:
    pe.fireresist
    pe.weak

    etd :)
     
  4. Offline

    beleg

    Code:
    23:58:36 [SEVERE] Could not load 'plugins/PlayerEffects.jar' in folder 'plugins': 
    java.lang.UnsupportedClassVersionError: me/syn/playereffects/PlayerEffects : Unsupported major.minor version 51.0
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
            at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:264)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:170)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:151)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:434)
            at org.bukkit.Bukkit.reload(Bukkit.java:187)
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
            at lishid.orebfuscator.utils.NetServerHandlerProxy.a(NetServerHandlerProxy.java:106)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
            at lishid.orebfuscator.utils.NetServerHandlerProxy.a(NetServerHandlerProxy.java:44)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
     
  5. Offline

    amunro

    Sorry, I just realised I compiled the plugin using Java 1.7. This means if you run your server on Java 1.6 it will break. I will try recompile and upload it for you!
     
  6. Offline

    beleg

    thanks

    waterbreathing - Player deals more damage

    ? :D

    blind - broken :(

    its not broken. its working for me..


    ahh and please use github :) or give us a download link for the source here.. (if u want )

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

    amunro

    Aha sorry i must have got the waterbreathing msg wrong. Blind, nightvision and invisibility haven't been implemented into minecraft yet, however the potion effects for them do exist. I will upload the source to github when I get some time :)!
     
  8. Offline

    DirtyStarfish

    I haven't tried your plugin but blindness definitely works. Works in my plugin anyway..
    Either way, nice plugin.
     
  9. Offline

    AmoebaMan

    I assume you're using the Craftbukkit workaround strategy? It's funny how a lot of Bukkit's holes are fixed through Craftbukkit (another example would be how Bukkit can't clear players' crafting squares, but Craftbukkit can).

    Anyways, great idea! I have a simple one-method API that I copy and paste into all of my plugins, but I'm glad somebody else had the idea to expand it a little and make it publicly available. Kudos to you good sir :)

    Also, you may want to double-check your list of effects, some seem to be out of place. Also, why do you list blindness as not working? I've used it several times, and it works fine for me.
     
  10. Offline

    beleg

    believe me it works xD (I tested it and Im serious)
     
  11. Offline

    md_5

    @amunro
    latest rb in title please
     
  12. Offline

    amunro

    Haha sorry, I uploaded this at 1am! Fixed.
     
  13. Offline

    efstajas

    I think you mean "Hook into worldguard" in your post though. :)
     
  14. Offline

    amunro

    Yup, I'm currently working on this feature now so you can add PlayerEffect flags to your worldguard zones!

    Also adding strength and duration parameters to the commands next release!
     
  15. Offline

    Fyre

    You realize invisibility and night-vision aren't "broken". They're just unfinished. Mojang hasn't bothered to make them work yet.
     
  16. Offline

    untergrundbiber

    Another another command would be nice, actual it bites with PetitionPlugin :/
     
  17. Offline

    amunro

    Yes, I simply stated 'broken' to mean that they don't work.

    I don't understand what you mean.
     
  18. Offline

    beleg

    he means playereffects doesnt work with petitionplugin because the have the same command (/pe)
     
  19. Offline

    untergrundbiber

    PetitionPlugin has the same command as your plugin
     
  20. Offline

    amunro

    oh the /pe, ok I will look into changing this. Any ideas?
     
  21. Offline

    md_5

    Approved
     
  22. Offline

    ATCPlugins

    You could make it so if /pe is already taken it uses the alias of /ple

    http://wiki.bukkit.org/Plugin_YAML
     
  23. Offline

    amunro

  24. Offline

    Naliz

    Would be cool if there was a setting for adding a permanent effect, comes in handy for admins.

    Let me know if you're going to implent this, I will be watching your plugin.
     
    jorisk322 likes this.
  25. Offline

    jorisk322

    This, but you should make sure there is also a command to disable the effect. Maybe you could do it so that everyone with a specific permission has the permanent potion effect. That way no new commands are necessary.
    Also, can you use the commands from the console?
     
    Naliz likes this.
  26. Offline

    Naliz

    I agree with this man above me. =]
     
  27. Offline

    Naliz

    Another cool thing is maybe if wearing items req is met then maybe for an example if a player wears full leather and holds a bow he gets speed effect temporarily until combo is broken?
     
  28. Offline

    isaac13_13

    Update to your current to-do list (potion length time, strength, and worldedit.) and this is PERFECT for shat I nedd. U can take a bit more time on the worldedit configuration though..... That can wait.
     
  29. Offline

    vasil7112

    I'd like to throw a potion and the effect comes..is this possible?
     
  30. Offline

    amunro

    I won't be updating this until bukkit finish cleaning their code up for 1.2
     

Share This Page