[FUN] SneakRacer v1.1 - Race using your sneak key [1337]

Discussion in 'Inactive/Unsupported Plugins' started by ZachBora, Sep 28, 2011.

  1. Offline

    ZachBora

    [​IMG]
    Moved on to BukkitDev! Download version 1.1 here :
    Version : v1.0​
    Welcome to Sneak Racer! The plugin that allows you to race using your sneak key (shift). Create wool tracks and partake in championships against your friends and your foes!​
    Wool paths can go up or down and turn. If there is only one direction to go, you will automatically be oriented in that direction.​
    May the best sneaker win!​
    Download : v1.0
    How to use video :
    Usage :
    • /sneakracer : While standing on Wool, this turns you into a Sneak Racer. Press without holding the shift key to move, repeat to move more blocks. Use the command again to return back to normal. Red wool moves you forward 2 blocks.
    Configuration :

    • RoadBlock : Determines which block is the race road. By default Wool (35)
    • BoosterValue : Determines what block value the booster block have. By default Red Wool (14).
    Changelog :

    Version 1.0
    • Initial release.
     
    r3Fuze, Butkicker12 and TopGear93 like this.
  2. Offline

    Butkicker12

    I would have never thought of this. Where do you get all of your ideas? Did this come from the bost and pig races?
     
  3. Offline

    ZachBora

    Ideas like this come and go. I couldn't say exactly how it came up. After my Amaterasu plugin I knew there was more to do with the shift key.

    Btw, pwego cheats at SneakRacer.
     
  4. Offline

    Butkicker12

    Oh course he does.
     
  5. This is awesome :D
     
  6. Offline

    ZachBora

    Added source code
     
  7. Offline

    astinax

    can you make a demonstration video of it please ?
     
  8. Offline

    ZachBora

    I'll try to make one tonight. The server I play on has been laggy lately.
     
  9. Offline

    astinax

    cool thanks :)
     
  10. Offline

    phaed

    You need a video explaining how this works. I cant figure it out from your description:

    Press what without holding the shift key to move? Repeat what to move more blocks? Why am I moving blocks again? Don't get it.
     
  11. Offline

    ZachBora

    I'm going home soon and will do a video.
    What I meant is this :
    1. Stand on wool
    2. type /sneakracer
    3. Tap Shift key (not hold it down, just press and let go)
    4. You will move 1 block if there is wool on a block in front of you.
    It'll be easier in a video.

    Video is being uploaded... It will take awhile, probably up tomorrow night.

    Tested against Bukkit #1240

    Added video

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

    Tomaz

    Should be a really fun plugin :D
     
  13. Offline

    ZachBora

    I just remembered where I got idea from! Those small train platforms where you pull lever up then push down and there's usually 1 person on each side.
     
  14. Offline

    Goldfire

    Seems promising, but I couldn't get it to work with PermissionsEx. I have full '*' admin rights for PermissionsEx and I still get the 'Permissions Denied' error when trying to start SneakRacer. I noticed that it bridges with SuperPerms, is it possible to make it compatible with PermissionsEx?
     
  15. Offline

    ZachBora

    I'll check, never done it before.

    Seems SuperPerms doesn't check for '*' permission. I had to modify the permission check to also verify if the user has '*'.

    Please try this version and if it works I'll update the plugin with it.
    Link

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

    Goldfire


    Thanks for the attempt, but that didn't seem to work. It might be worth checking this out: https://github.com/t3hk0d3/PermissionsEx/wiki/Native-API-example

    Other than that, users with more restricted permissions will need a way to be able to run the /sneakracer command so I'm sure other people will appreciate PermissionsEx and PermissionsBukkit support.
     
  17. Offline

    ZachBora

    Ok I added reference to PEX. Please retry it here
     
  18. Offline

    Goldfire


    Very good, nice work. Works perfectly now.
    Thanks for taking the time to look at this.

    When adding the reference, did you use '*' or something else?
     
  19. Offline

    ZachBora

    I made it like this :
    if (player.hasPermission(node) || player.hasPermission(pdfdescription + ".*")
    || player.hasPermission("*"))

    node = "SneakRacer.racer"
    pdfdescription = "SneakRacer"

    Edit: Scrap that. Wrong code, I did
    permpex.has(player, node)

    Node being : "SneakRacer.racer"
    So it will work for either *, SneakRacer.* and SneakRacer.racer
     
    Goldfire likes this.
  20. Offline

    Goldfire

    Thanks, 'SneakRacer.racer' worked for me. Keep up the good work.
     
  21. Offline

    ZachBora

    Added version 1.1 on BukkitDev, link at top of the page.
     
  22. Offline

    MonsieurApple

    Please upgrade to latest RB
     

Share This Page