Inactive [FUN/MECH] SuperJump v0.8 - Launch Users [1.2.5-R3.0]

Discussion in 'Inactive/Unsupported Plugins' started by Bubby4j, Mar 10, 2011.

  1. Offline

    Bubby4j

    [​IMG]
    Version: v0.8

    BukkitDev

    This plugin will allow you to make blocks that when walked over, will launch a player in any direction you wish! Even above the clouds!

    Usage:
    Place a sign with (without the quotes):
    '[Jump]' on the first line (case doesn't matter)
    The launch speed X on the second line
    The launch speed Y on the second line
    The launch speed Z on the second line

    The sign must be directly below the block you want people to launch when stepped on.

    If you want to test it, put in plugins folder, start server, and have the following text on a sign:
    [Jump]
    2
    0.5
    0.2

    Config File:
    Code:
    onlyOpPlace: 'true' # Choose if only ops can create jump signs.
    timeout: '0.5' # Choose timeout, to prevent users from getting launched twice, or to place a limit on how often they can use it, in seconds, -1 for no timeout
    [​IMG] [​IMG] [​IMG][​IMG]





    Features:
    * Launches users that walk over particular blocks
    * Useful for a base with a cool entrance
    * isOp option to only let ops create jump signs
    * Timeout config option to choose how often users can use it

    Planned:
    * Let users select options
    * Mob Launching
    * Minecart Launching
    * Boat Launching (Should work in water!)

    Download latest on BukkitDev!
    Old versions:
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>

    Source
    Licence:

    Show Spoiler
    You are allowed to use my plugin, and view source code, under the following conditions:
    You do not claim you made it
    If someone asks, you must tell them that I made it
    Do not use large portions of my code
    You may modify it for your own use, but not distribute the modified version of it



    Changelog:
    Version 0.8
    * Updated for latest bukkit

    Version 0.7
    * Fixed some performance issues

    Version 0.6
    * Fixed issues where people wouldn't land in the same spot

    Version 0.5
    * Added config file and option to only let ops create the jump signs

    Version 0.4
    * Updated Plugin to recommended build.

    Version 0.3
    * Fixed a bug where numbers can't be too long

    Version 0.2
    * Changes the way it flings the user, to help prevent inconstancies

    Version 0.1
    * Releasing my awesome plugin
     

    Attached Files:

    Last edited by a moderator: Dec 14, 2016
    vphonem, GreyBishop, Bronski and 2 others like this.
  2. Offline

    Bubby4j

    How is my code bad? It may be messy, but it isn't inefficient. And it works. Also, how is my code laggy? And what do you mean jump instantly? Mine does that. Mine doesn't change the angle you are looking. Mine lands in the same spot if you don't move midair either. Mine doesn't disable fall damage, but that's a good idea. Permissions is good but I didn't add it because I'm waiting for the permissions embedded into bukkit.
     
  3. Offline

    DeLux

    Hey, not need to get all defensive, I didn't mean anything by it, that's why I put the smiley. The jumping instantly, change of view angle and landing in the same spot are all issues I've had with yours, and I know I'm not the only one who reported the last one. As for laggy/inefficient, your code grabs various stuff it doesn't need, and since you do it every time the player moves, that's bound to increase CPU load by a considerable sum. For example, you grab the block one meter below the player (the 'jump' block), but then you don't do anything with it. And you parse the sign twice, once just to see if it contains any errors, but then you throw the results of that away and do it again. You also do expensive String operations to get the block type instead of simply comparing getMaterial to Material.SIGN_POST/WALL_SIGN. Lastly, that new thing you added in 0.6 you do a whole bunch of stuff that's far from free every time the player moves, and since that gets called many times per seconds it's bound to cost plenty of CPU time, especially on a server with more than one or two players. I'm just trying to help here, that's why I included my source so you could for example simply copy and paste the Permissions part - and let's face it, Bukkit has planned to include permissions for like four months now. If it's happening ever, it won't be any time soon.
     
  4. Offline

    Bubby4j

    Very good points... I didn't think that little coding errors like that would make hardly a difference in the CPU usage. Thank you for telling me.
     
  5. Offline

    DeLux

  6. Offline

    Bronski

    Ah very cool. Is the source in there too? I'm like ||<that close from dipping my toe into Bukkit development and I'd love to peek into some of my favorite mods to see what makes them tick :)
     
  7. Offline

    Bubby4j

    Ok, I think I fixed those performance issues. And it should launch correctly now too.
     
  8. Offline

    Reterg

    Hi
    I just updated to v0.7 though I also noticed this in v0.6
    A superjump sign I have does not propell be as far along the x axis as it used to.
    Also, increasing the number did not have any impact on how far along the X axis I went. No matter how high I put it, I don't go any further than about 30 blocks. For example, I put 10 for the X axis and got propelled about 30 blocks, I change it to 100 and it goes the same distance.
     
  9. Offline

    noron596

    It doesn't work for me. Help?
     
  10. Offline

    Bubby4j

    It seems since there's a debounce it doesn't send the player as far as they used to... I'll try to find a solution. To get the old effect, change the timeout to -1.
     
  11. Offline

    AFakeman

    Could you tell how to calculate required velocity?
     
  12. Offline

    Drithyl

    Bubby and Delux, you guys should merge both plugins and work together, there's really no point in having two separate plugins that do exactly the same, and both need upgrading from each other.

    SuperJump can't disable fall damage, which is absolutely necessary.
    SuperJump only works with signs placed on the floor (at least that's what I found out).
    SuperJump doesn't work with carts or boats.
    SuperJump doesn't have Permissions support.

    Recoil never makes you jump to the same place, the force is extremely variable.
    From my testings, Recoil gives more lag than SuperJump, so that causes that the server kicks you because it thinks you are hacking (you were moving too fast).

    I don't know if I'm forgetting something, but seriously, ONE plugin with the features of both combined would probably solve ALL problems. Please.
     
  13. Offline

    Kainzo

    I wish I was good with these signs - I just cant seem to get it where I want.

    Just wanted to bring this in to your attention.
    16:51:45 [SEVERE] Could not pass event PLAYER_MOVE to SuperJump
    java.lang.NumberFormatException: empty String
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:992)
    at java.lang.Float.parseFloat(Float.java:422)
    at Bubby4j.SuperJump.SuperJumpPlayerListener.onPlayerMove(SuperJumpPlayerListener.java:60)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:285)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:139)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:219)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:71)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    16:51:46 [SEVERE] Could not pass event PLAYER_MOVE to SuperJump
    java.lang.NumberFormatException: empty String
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:992)
    at java.lang.Float.parseFloat(Float.java:422)
    at Bubby4j.SuperJump.SuperJumpPlayerListener.onPlayerMove(SuperJumpPlayerListener.java:60)
    at org.bukkit.plugin.java.JavaPluginLoader$7.execute(JavaPluginLoader.java:285)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:139)
    at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:219)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:71)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:399)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

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

    FoX_AaZzA

    Been testing this on my new server, works ok, but theres a few things i had to work out myself

    x appears to be distance
    y appears to be height
    z appears to be direction

    is that correct?

    also, i seem to be able to get excellent height out of these jumps, but the distance is limited, maybe because of the game mechanics?
    i find that no matter how far you set it, you get to a certain point and you slow quite quickly and stop.

    i tried setting multiple jumps but its hard to make yourself land in the same spot, and then theres a low chance of dying when you hit the next jump

    but on the other hand, it makes for a great elevator, and i love leaving a cake out and having one of these launch people who try to eat it into a nearby wall of lava... i'm thinking a bedrock cage might have a play in this soon :)

    thanks for the mod so far!~
     
  15. Offline

    Bubby4j

    No, x,y,z is the forces applied on the user, so

    if you set x to a positive value, they will go up on the x axis. Same with y and z.
     
  16. Offline

    evolsoulx

    Does anyone know how to calculate the sign needed to go from x1,y1,z1 to x2,y2,z2? I've been trying to play with the math and I can't make it work :(
     
  17. Offline

    Bubby4j

    If you want to go in a positive direction x,y,and z, you want positive numbers on the sign.
    So you will need something between 0 and 1 for each axis, z and x being the same, y possible needing to be different.
     
  18. Offline

    FoX_AaZzA

    yea, i'm still unsure how to work it out...
     
  19. Offline

    theb0ss2

    when i walk into a diamond block without the sign it launchs me please fix
     
  20. Offline

    Bubby4j

    That makes no sense. There must be a sign below you.
     
  21. Offline

    EliastheNewbie

    Sorry to bother you, i'm very new to pluggins, actually started yesterday. I wonder, wheres the .jar file? Because the sign won't work to me, i just get the full .zip :/ Please reply. :)
     
  22. Offline

    Bubby4j

    The download in the post is to the jar file.
     
  23. Offline

    Bronski

    The later versions of NoCheat seem to be now stopping this from working for players. Previously it blocked flying fine for regular players (but not admins) but let everyone use the SJ blocks. Just wanted to report it... might not be anything you can do about it. I posted on that thread as well.
     
  24. Offline

    Bubby4j

    Thank you for telling me, I believe I know why it blocks it.
     
  25. Offline

    Evenprime

    I fixed NoCheat now to make it work again with Superjump.
     
  26. Offline

    Bronski

    Seems to be working fine now, thank you both *showers you with kissies* :p
     
  27. Offline

    Bubby4j

    Evenprime did all the work.
     
  28. Offline

    theb0ss2


    i know there should be but when ever i run into a diamondblock with no sign it superjumps me. is there a way to fix this?
     
  29. Offline

    Masterflapdrol

    ive got a idea >:) /setjump command /setjump is 2 time as high. 2 blocks /setjump 5 is 5 times a high :D i would love that! :D
     
  30. Offline

    Bubby4j

    I don't see the purpose of that.

    I tried to test it myself, I couldn't get the same thing. Can I come to your server and see for myself?

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

    Masterflapdrol

    But i dont see the purpose of the sign thinggy either. :) . i mean this plugin is [FUN]. so....
    BTW i like your idea eighter :)
     

Share This Page