Filled Speed Boots

Discussion in 'Archived: Plugin Requests' started by Famous Guy, Nov 17, 2013.

  1. Offline

    Famous Guy

    Plugin category: Fun

    Suggested name: Speed Boots

    What I want: I want a plugin where you right click diamond boots if gives you speed boost and when you right click it again it turns it off

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: SpeedBoost.Use - Can use the boots.

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

    PieMan456

    Famous Guy
    So when you right click diamond boots you get a speed boost? Do the diamond boots go on you or do they stay where they are?
     
  3. Offline

    AndyMcB1

    They stay where they are, and yes, a speed boost.. Maybe a config for the tier of speed?
     
  4. Offline

    PieMan456

    AndyMcB1
    How would I add a configurable speed to
    Code:java
    1. e.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 10000000, 1));
    I am not too good at coding yet.
     
  5. Offline

    AndyMcB1

    Assuming you know how configs work..

    Code:java
    1. #Config
    2.  
    3. tier: 2


    Then in your code (forgive me! I haven't done java in a while)

    Code:java
    1. if (getConfig("tier").equals("2") {
    2.  
    3. //code
    4.  
    5. } else if (equals("3")
    6.  
    7. {
    8.  
    9. //code
    10.  
    11. } /*etc */
     
  6. Offline

    PieMan456

    AndyMcB1
    Ohhh. Thanks!

    Edit: Does not work:(
     
  7. Your second piece of code is wrong. To get an integer from the config you'd do:

    Code:java
    1. getConfig().getInt("Key-Name")
     
  8. Offline

    PieMan456

  9. Offline

    Pluto_

  10. Offline

    Famous Guy

    Pluto_ Error:
    Code:
    19:26:22 [SEVERE] Could not load 'plugins/SpeedBoots.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/pluto_/speedboots/SpeedBoots : Unsupported major.minor version 51.0
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
        at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugins(CraftServer.java:241)
        at org.bukkit.craftbukkit.v1_6_R3.CraftServer.<init>(CraftServer.java:219)
        at net.minecraft.server.v1_6_R3.PlayerList.<init>(PlayerList.java:56)
        at net.minecraft.server.v1_6_R3.DedicatedPlayerList.<init>(SourceFile:11)
        at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:107)
        at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:393)
        at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
    Caused by: java.lang.UnsupportedClassVersionError: me/pluto_/speedboots/SpeedBoots : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
        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:173)
        ... 9 more
    
     
  11. Offline

    Pluto_

  12. Offline

    AndyMcB1

  13. Offline

    JRL1004

    Pluto_ I thought that major.minor errors were caused by the server running an outdated version of Java (when compared to that of the compiler). What java version is the plugin compiled for?

    Famous Guy Since I am not sure if it's do to the server being outdated, mind if I ask what version of Java the server is running on?
     
  14. Offline

    Pluto_

  15. Offline

    Famous Guy

    Can you please redecompile using Java 6?
     
  16. Offline

    Commander9292

    Famous Guy do you need someone to make this for you? Or can you get it?
     
  17. Offline

    Chloe-chan

    Uh I am not sure about this but shouldn't we compile our Bukkit plugins in Java 6 ?
     
    Famous Guy likes this.
  18. Offline

    timtower Administrator Administrator Moderator

    Don't need to, but isn't forbidden either
     
  19. Offline

    MarinD99

    Hey, guys, I have that plugin. It's only called "BoostBoots". Go to my plugins site and check it out if you like :)
     
    Famous Guy likes this.
  20. Offline

    Famous Guy

    I don't know how sooo
     
  21. Offline

    Commander9292

    Famous Guy Not what I meant, I meant that if you can't get it from Pluto_ I can make it for you.
     
  22. Offline

    Famous Guy

    Sure but make it so that you compile it using Java 6. And when you right click the boots you don't wear them :p
     
  23. Offline

    Commander9292

  24. Offline

    Pluto_

  25. Offline

    Famous Guy

  26. Offline

    Commander9292

    Famous Guy Actually you're going to have to use his, I can't make this right now sorry. Maybe I can later..
     
  27. Offline

    Famous Guy

  28. Offline

    Pluto_

  29. Offline

    Famous Guy

  30. Offline

    Pluto_

Share This Page