[INACTIVE][ADMN] Superpowers (aka adminmode) v0.8 - fly/hover, instant block break, killing,.. [860]

Discussion in 'Inactive/Unsupported Plugins' started by Waterwolf, Mar 29, 2011.

  1. Offline

    Waterwolf

    Superpowers (or adminmode)
    Version: v0.8

    If flying is the only thing you want from plugin, consider using Weasel512's Wings as it has more features for flying.

    Superpowers allows you to easily get a couple of super powers to easily catch hacking griefers or just fly around for lulz.

    Features:
    • Allows you to enable/disable super powers for yourself
    • Super powers are flying when holding down shift, instant block breaking, automatic but optional temporary glowstone creation when it's night (aka flashlight), unlimited health and instant mob/player killing
    • Every placed glowstone is automatically detected so getting free glowstone is only possible if server crashes on wrong moment and even then player will only get two glowstone dusts.
    • Allows you to quickly spawn items/colored wool
    #860 download: http://dl.dropbox.com/u/18458187/bukkit/SuperPowers.jar


    Source is inside jar in same folder as class files.

    Command to toggle superpowers on/off is "/superpowers" or "/sp" or "sp playername" in console. To return back to where you toggled superpowers on use "/sp tpback"

    Permissions nodes:
    superpowers.use for /superpowers or /sp
    superpowers.fly for flying
    superpowers.instabreak for instant block breaking
    superpowers.instakill for instant player/mob killing
    superpowers.infinitehp for no health losses
    superpowers.glow for automatic glowstone
    superpowers.itemspawn for item spawning commands

    If no permissions plugin found, it will default to ops.txt

    Commands:
    /sp or /superpowers - Toggle superpowers on/
    /listsp - List players using superpowers
    /setflyspeed flySpeedMultiplier - ("2.0" is 2x walking speed at least in theory) Sets your flying speed to the given multiplier
    /spitem itemname amount playerToGiveTo - Spawns item name. Amount and playerToGiveTo are optional
    /spwool dyecolor amount - Spawns colored wool
    /tfly - Enables/Disables flying for you
    /thp - Enables/Disables infinite hp for you
    /tbreak - Enables/Disables instant block breaking for you
    /tkill - Enables/Disables instant killing for you
    /tglow - Enables/Disables automatic glowstone placement for you

    Changelog:
    Version 0.8
    • Hopefully fixed flying thread killed bug (synchronizations)
    • Fixed /tbreak (was fixed in 0.75)
    Version 0.7
    • Added commands for toggling each ability on/off
    • Better hovering + toggling to hover mode (hold feather in hand to hover now)
    • /toggleglow -> /tglow
    Show Spoiler

    Version 0.6
    • Fixed outdated player instance bug (aka no flying/glowstone after using nether portal)
    • Permission nodes for each ability. Command line superpowering grants every ability except item spawning
    Version 0.5
    • /spitem and /spwool
    Version 0.4
    • Ability to change flying multiplier and glowstone placing per user
    • Hovering mode. To toggle between hovering and flying, right click on air while holding an item (bow won't toggle it).
    • New commands:
    • "/toggleglow" which toggles glowstone placing on/off (default is off). Takes no arguments
    • "/setflyspeed flySpeedMultiplier" sets your flying speed multiplier to this. "2.0" means you fly 2x faster than walking speed is (in theory). The limits are 0.5-7.0 and you should've never go past that.
    Version 0.3

    • Superpowers can be toggled from console (use "sp namehere" and remember to disable it for them :p)
    • It no longer saves inventory and location so it no longer returns player back there on using command again
    • Optional returning to location where sp was toggled on (use "/sp tpback" ingame or "sp namehere tpback" on console)
    • Command to list users with superpowers enabled ("/listsp" ingame and "listsp" on console)
    • Glowstone is placed on "Flyer" scheduler instead of PLAYER_MOVE which should make everything smoother
    • A console message in onEnable() that tells you that flying on 617 won't work :p
    Version 0.2

    • Permissions support (permissions node is "superpowers.use")
    • Player flying is now scheduled which should make flying more stable
    • Player quit event is hooked so if player quits his superpower will be removed
    Version 0.1

    • Releasing my awesome plugin
     
    Jessy80, gmore70, DimsenJonas and 2 others like this.
  2. Offline

    OverlordRoy

    PLEASE HELP

    19:56:44 [SEVERE] Could not load plugins/SuperPowers.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:105)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:63)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    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:316)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:97)
    ... 8 more
     
  3. Offline

    Waterwolf

    Update to newer Java. UnsupportedClassVersionError means I compiled plugin on higher Java (or technically JDK) version than what you can run.
     
  4. Offline

    abaldwin11

    With 670 I still can't fly, not sure if I'm doing anything wrong.
     
  5. Offline

    Waterwolf

    When you use "/sp" or "/superpowers" do you get chat message saying that it is enabled? If you do, make sure you're not in hover mode by right clicking random place in air, it should say "Flying mode enabled" in chat and you should be able to fly using shift.
     
  6. Offline

    OverlordRoy

    the same thing happend and i updated my java


    17:00:04 [SEVERE] Could not load 'plugins/SuperPowers.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    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:316)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:132)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:84)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    17:00:04 [INFO] Done (0.150s)! For help, type "help" or "?"
    >
     
  7. Offline

    abaldwin11

    I use /superpowers and it says it is enabled. I right click and it does say Flying mod enabled but when I hold the shift key I just crouch. I even tried changing what left shift does to see if it was getting messed up but it didn't help. The super pick works. I want this plugin for my admins.
     
  8. Offline

    littleartistj

    hey so i installed this plugin and signlift at the same time becuase i was planning on making a mall in my server, so i made the giant structure with world edit then i made the second floor, then i wanted to try flying so i did the /superpowers then i flew away, then i flew back and the second floor i made, got reset :( is it a bug or something?
     
  9. Offline

    unachemaxwell


    I have this same problem, can't figure it out. I can pastebin my start-up to see if there are any overlap we have that may be conflicts?

    just noticed the note from the updated version CB 617 is the cause :p
     
  10. Offline

    Waterwolf

    That's weird because I tested with #670 and it did work. If you jump off a cliff and hold shift while falling down, does tue falling speed reduce at all? If it does then somehow hovering mode is forced on but if it doesn't, no idea :/

    In case someone is still on 617, it won't work on that.
     
  11. Offline

    gjosse

    It does not seem to work, this is what i get
    Code:
    11:36:07 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-646-gb61ef8c-b670jnks (MC: 1.4)
    11:36:07 [INFO] Preparing level "world"
    11:36:07 [INFO] Preparing start region
    11:36:07 [INFO] 144 recipes
    11:36:08 [INFO] Preparing spawn area: 44%
    11:36:08 [SEVERE] Could not load 'plugins/SuperPowers.jar' in folder 'plugins':
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        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:317)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:132)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:84)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    11:36:08 [INFO] Done (0.165s)! For help, type "help" or "?"
    >
    
    I have just updated my server to 670 but it does not work!
    help
    Thanks
     
  12. Offline

    Waterwolf

    I have never seen that error before. Quick googling told me it has something to do with outdated java but that doesn't seem to help. Not sure what to say :/
     
  13. Offline

    apnxcj

    I switched the computer i was running the server on and now every plugin works correctly.
     
  14. Offline

    Akintudne

    Running CB 670 and SP 0.4. I've tried several versions of both and holding shift has never done anything. Still doesn't. I get the output messages when using /superpowers, including the "You are in flying mode" and "You are in hover mode" messages. I never do anything but drop like a stone or sit there waiting for something to happen.
     
  15. Offline

    abaldwin11

    I just updated my server to the newest bukkit update (to prevent people from bringing down the server) and now I can fly. So everything is working now YAY
     
  16. Offline

    Neons

    Flying works in 670 for me, and you need to hold a item in your hand to toggle flying/hovering mode when you are right clicking in the air.
     
  17. Offline

    godgodgodgo

    why am I still falling in hovering mode? :'(
     
  18. Offline

    AJN27

    I can't fly for some reason. How exactly do you fly
     
  19. Offline

    LtDan

    doesnt work for me either the messages show up but nothing ever happens when i hold shift pretty much the same problem as akintudne
     
  20. Offline

    Akintudne

    Okay, I figured it out, at least for me.

    It's not SHIFT, it's SNEAK/CROUCH. So, if you remapped your keys try using whatever button you've mapped to Sneak and see if you start flying then.
     
  21. Offline

    Ben1002

    Why do you still fall in hover mode?
     
  22. Offline

    jbuzkill2

    i love this plugin but can u please make the fly layout like zombes fly mod?
     
  23. Offline

    tikktokk

    like it! but the flying is wierd! should be like walking but when you face upward you move upward (like singleplayercommands)
     
  24. Offline

    loridcon

    if it hasn't been adressed before, there is a slight conflict with the sp command and worldedit. I opened up the jar file and modified the yml file in the root, added it back to the jar, and all is well. I changed it from /sp to /sp2, but you can change it to anything. The line is (in plugin.yml):

    Code:
    aliases: [sp]
    changed to:

    Code:
    aliases: [sp2]
    If this is obvious or redundant, my apologies. Just providing a solution.

    Nice plugin, keep it up! :D
     
  25. Offline

    Nathan Bowes

    Nice plugin! Is there anyway you could set the key which changes the mode like from flying to hover?

    Also stop it from destroying like doors/buttons/levers with one hit would be nice. (also configurable)

    Thanks.
     
  26. Offline

    Inspitron

    Shift for Sneak/crouch is set by default and im pretty sure most of us does not change keys in minecraft.
     
  27. Offline

    haydenweb

    It dont work, it says enabled press shift... ect but when i try to fly it doesn't work, the glow works but the flying doesn't?
     
  28. Offline

    Neons

    Extremly buggy flying, sometimes it works, then a few minutes later it stops working, tried reload and stopping/starting server but no help in that.
     
  29. Offline

    Bill Warner

    maybe by superpowers it's meant to be like The Greatest American Hero superpowers?

    Anyone else feel like him when flying with this mod?

    Belive it or not I'm walking on air.
     
  30. Offline

    jalaki

    Flying works in build 707 and 711.
     
  31. Offline

    Nathan Bowes

    Hi Waterwolf, my server says flying is disabled for this server randomly for the new build 733. The flying does work but I get random kicks.

    Oh derp, they added allow-flight=false.

    Great plugin thanks ;)!
     

Share This Page