[MECH] GoldenSprint v1.2 - Configurable Sprint Plugin [1060]

Discussion in 'Inactive/Unsupported Plugins' started by Nate Wiebe, Apr 16, 2011.

  1. Offline

    Nate Wiebe

    GoldenSprint v1.2 - Simple sprint plugin:
    Version: Download v1.2

    Ever thought there was no use for Gold Boots? Well you're wrong. Put them on and you will be able to run like the wind. Only thing is you can get tired and will have to slow down back to a walk to regain your energy.

    Features:
    • Allows users to sprint with Gold Boots
    • Energy Meter
    • Permissions Support (Tested with v2.7)
    • Refresh Ability with a command or by eating food
    • Bonus speed and energy from Golden Apples
    • Toggle Unlimited Energy (Hulk Mode)
    • Configurable: sprint speed, regen/energy rates, bonus speed
    • Optional: Can choose what boots to use, and the normal/bonus speeds of each type. (barefoot, gold, iron, diamond, chainmail)
    How to use:
    • Put on Gold Boots
    • Use the sneak/crouch key to sprint (Default: Shift)
    • Eating a Golden Apple will boost and double the length of the sprint
    • /gsrefresh [player] to refresh a player's energy ([player] field is optional)
    • /gshulk [player] will give the player unlimited energy ([player] field is optional)
    Permissions:
    • gs.use.sprint - sprint ability
    • gs.use.goldenapple - golden apple ability
    • gs.use.regen.* - allows for all food types to refresh energy
      • gs.use.regen.apple
      • gs.use.regen.bread
      • gs.use.regen.cookedfish
      • gs.use.regen.cookie
      • gs.use.regen.grilledpork
      • gs.use.regen.mushroomsoup
      • gs.use.regen.rawpork
      • gs.use.regen.rawfish
    • gs.admin.refresh - /gsrefresh command
    • gs.admin.hulk - /gshulk command
    Installation:
    • Install PermissionsEx
    • Place .jar in plugins directory
    • Reload server
    Help:
    This plugin REQUIRES PermissionsEx.​
    To get assistance, please indicate which Bukkit build you are running on, and paste your GoldenSprint.properties file as well as any errors from the console here: http://www.pasteall.org/
    Changelog (open)

    Version 1.2
    • Moved dependency from Permissions to PermissionsEx
    • Updated for lastest Bukkit build
    Version 1.1
    • Fixed NPEs
    • When a user logs in, their energy is set to 0
    Version 1.0
    • Added chainmail to boot option
    • Fixed a stupid mistake
    Version 0.9
    • Fixed the bug that caused your bonus energy to be removed when eating food
    • Can now choose what boot (bare, gold, iron, diamond) will let you sprint and configure the normal and bonus speeds of each type.
    Version 0.8
    • Added Hulk mode (/gshulk) to give player unlimited energy
    • Cleaned up the code a bit
    Version 0.7
    • Fixed a bug with cake by removing cake from the energy list.
    • Fixed a bug where you could get energy by left clicking with food in your hand.
    • Added the ability to remove the energy bar and only get notifications when you had no energy and full energy.
    Version 0.6

    • fixed an exploit where sprinting could be abused by jumping or going into water, still not 100% perfect, but the best that can be done with what the API offers.
    Version 0.5

    • allows food to replenish energy
    • configurable to allow sprinting without boots
    Version 0.4


    • REQUIRES Permissions (Permissions is good to have, also cleans up the code)
    • Eating a Golden Apple will make the sprint last twice as long, as well as give a speed boost during the excess energy
    Version 0.3


    • Added a configuration file
    Version 0.2


    • Added Permissions Support
    • Changed the energy regen/use rate
    • Made regen more verbose
    • added a /gsrefresh [player] to refresh a player's energy
    Version 0.1


    • Initial Release
     
  2. Offline

    msw1

    I am gonna test this, but a bit more information would help.

    I see no difference in speed.

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

    Codisimus

    great idea, my users are complaining about being slow lol
     
  4. Offline

    kahlilnc

    You should add configurable sprint speed.
     
  5. Offline

    Nate Wiebe

    @msw1: Completely forgot to add the ingame instructions. My apologies.

    @kahlinlnc: I am planning to add configuration, just haven't decided what to make configurable yet.
     
  6. Offline

    DrBowe

    The sprinting aspect works great, but something is wrong with regeneration.
    Either that, or regeneration takes ridiculously long.
    Also, might I suggest a notification when your energy is regenerating as well?
     
  7. Offline

    airsoftinva

    doesn't go any faster. Bad plugin.
     
  8. Offline

    Nate Wiebe

    @DrBoweNur: regeneration does take a while. I have it set to only regen while walking not time based. I'm going to make the regeneration configurable. I am going to make it more verbose for v0.2 which I hope to have out today.

    @airsoftinva: saying it doesn't work doesn't help. Are you getting any errors? Also you can only sprint while wearing gold boots and holding crouch.
     
  9. Offline

    ToastHelmi

    how fast is teh energyrelode
     
  10. Offline

    Nate Wiebe

    For those wondering about how regen works. You get 1000 starting out. When you sprint 10 gets taken away from the total. When you move or look around 1 gets added at the same speed as it was removed. I'm going to make both numbers adjustable in v0.3
     
  11. Offline

    heroanth2345

    Try jumping when using sprint, I don't know why but it's really faster
    EDIT: Oh maybe you don't go faster because you sneak while sprinting
     
  12. Offline

    Nate Wiebe

    @heroanth2345: as well as you can swim faster than sprint

    Released v0.2:
    • Added Permissions Support
    • Changed the energy regen/use rate
    • Made regen more verbose
    • added a /gsrefresh [player] to refresh a player's energy

    Released v0.3:
    • Adds config file

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

    MarsXTC

    When I try sprinting it just stays the same, Im just crouching but the energy meter comes up
     
  14. Offline

    Nate Wiebe

  15. Offline

    MarsXTC

  16. Offline

    Nate Wiebe

    MarsXTC: when you start the server it will say: [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-653-g9992fff-b*****677*****jnks (MC: 1.4)
    (without the *) I still need to rule out the version, so I need to know.
     
  17. Offline

    MarsXTC

    Ahh I think 617 , Im so sorry for the wrong like, telling you false information when this plugin was meant for 677
     
  18. Offline

    Nate Wiebe

    Try upgrading to 677 and if you still have problems, let me know.
     
  19. Offline

    MarsXTC

    I'll upgrade it later, do you have Aim,MSN, Anything easier to contact you by?
     
  20. Offline

    BioRage

    Is this the same as the other Sprint Plugin, versus requiring boots?

    The other one can easily be glitched by walking and spamming jump...
     
  21. Offline

    Nate Wiebe

    I wrote this from scratch, but you can move faster by spamming jump. I'm going to hopefully be fixing that for v0.5. v0.4 will be released in about 30 min.

    Released v0.4:
    • Now requires permissions
    • Golden Apples give you bonus speed and energy

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

    BioRage

    Thanks because I'd love to use it in my RPG system. Also, is it possible for you to add a config file with the ability to change the item id of the benefit's? Ie LeatherShoe's get +1 speed, iron -> +4, etc etc.
     
  23. Offline

    Nate Wiebe

    I'm actually going to be coming up with different abilities for different boots. Because of this, I don't want to break compatibility with the other plugins I plan to make. So I'm not going to add the ability to have different types of boots for sprinting. Plus the name kind of insinuates that it's for gold boots. But thats a cool idea.
     
  24. Offline

    PsychoNecrosis

    seeing as there are a lot of boot/armour mods, how about applying the speed boost to food, and having it stay on for a set amount of time after consumption instead, like a buff?
     
  25. Offline

    Nate Wiebe

    I added that sort of idea with the golden apple. The reason why I am using gold boots and golden apples is because it would be easy for something like this to get abused. It has to be semi difficult to get this ability. One thing I will do is make foods increase your energy level. I will also add the values to the config so you can choose how much energy they restore.

    Actually I will also add a choice to use this with or without boots.

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

    Taemera

    Any chance you're going to make it so that golden boots boosts the speed by (for example) 1.1 without pressing shift?
     
  27. Offline

    Willobe

    Download link is broken it seems
     
  28. Offline

    Phaedrus

    This is great! I'm gonna add this as a purchasable ability to my magic shop.
     
  29. Offline

    Nate Wiebe

    @Willobe: yes it was, though the wget link was still good. I forgot to publish the file after I uploaded the new version (/facepalm). It should be good now.

    Version 0.5 Released:
    • ability to allow sprinting with or without gold boots
    • food now can refresh energy

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

    BioRage

    Food as in Gastronomic? Or as in just normal, I assume Normal, I'll test this out!

    Tested, Only request I have is to get rid of that jumping speed glitch, if possible, kind of ruins the sprint imo :p

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

Share This Page