Filled AloeFly

Discussion in 'Plugin Requests' started by Skrubzy, Apr 24, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Skrubzy

    Plugin category: Survival, Fun

    Suggested name: AloeFly

    What I want: I want a plugin that allows anyone with the permission "aloefly.use" to be able to fly under the set Y-Level. (The Y-Level should be configurable in the config, defaulted to 256) Once they're feet are at the set Y-Level (If you press F3 is should say 256, not 255 or 257.) It will act as though there is a block above their head and they can't pass through it, please try to make it as least glitchy as possible.

    I'm not sure if this can really be done but I'm assuming is can because WorldGuard has the anti-passthrough setting.

    Ideas for commands: /fly - Allows the user to enable/disable their flight, both using the same command.
    /flybypass - Allow the user to bypass the set limit and fly all around the world, defaulted to "Off" when the user joins the server each time.

    Ideas for permissions: aloefly.use - Allows the user to use /fly
    aloeflybypass.use - Allows the user to use /flybypass

    When I'd like it by: ASAP

    Please make an alias for /flybypass; /flyb , /flybp , /flybyp , and /flybypas

    The configuration file should look like this:
    //
    This is the Y-Level at which players can not pass through if they dont have the permission "aloeflybypass.use"
    Y-Level: ___
    //This is a list of all players that have the permission node "aloeflybypass.use"
    Users:
    [Skrubzy]
    [Player2]
    [Another_1]
    -End of file
     
  2. Offline

    Regablith

  3. Offline

    Skrubzy

    Thank you! But what version did you use to make this? I'm using Spigot 1.8.8-R0.1-SNAPSHOT and I'm getting this error in the config every time I hit the flight limit: c6e7a397c5473b9c471fb56660438760.png
     
  4. Offline

    Regablith

    I made it with 1.9, I'll compile it with 1.8.
     
  5. Offline

    Skrubzy

    Ok thank you, also whenever I turn off fly and try to go above the limit it still doesn't let me pass. Could you fix that and also, if the user is in Creative, they automatically bypass?
     
  6. Offline

    Regablith

    Sure thing. Quick thing first, what do you mean by "whenever I turn off fly and try to go above the limit it still doesn't let me pass"?
     
  7. Offline

    Skrubzy

    I just found another error xD Sorry to add so many things to your plate, but when they hit the flight limit they get teleported a few blocks down even if there is a block right beneath them, can you disable this please? I don't want people glitching into someone's home uninvited.
     
  8. Offline

    Regablith

    Sure, how else do you want me to block it?
     
  9. Offline

    Skrubzy

    Is there a way to teleport them to the closest block near them?
     
  10. Offline

    Regablith

    Yup.
     
  11. Offline

    Skrubzy

    Wait actually no don't do that, I just realized how annoying that could be if you're flying up. Could it be the nearest air block?
     
  12. Offline

    Regablith

    The nearest air block will just be a block below them (or inside someone's house)
     
  13. Offline

    Skrubzy

    hmm....I guess you can just ignore this feature then. I know people are going to be complaining about being teleported to the ground every time they hit the sky limit so just do what you were doing before. But convert it to 1.8.8 please.
     
  14. Offline

    Regablith

    https://www.dropbox.com/s/03ovx46l3a8eqz1/AloeFly.jar?dl=0
     
  15. Offline

    Skrubzy

    I went to the sky limit and it teleported me to the ground, (This might sound rude but it's not intentional) Like I said in the last reply, could you make it so they are still in the sky like before but fix the code. Other than that, creative bypass and everything else works perfectly (I think)
    EDIT: Can you make it so that players in the spectator gamemode (/gamemode 3) Also have auto bypass please?
     
  16. Offline

    Regablith

    You don't want them to stop flying?
    And sorry, forgot spectator mode existed :p
     
  17. Offline

    Skrubzy

    I was working on other configuration so I didn't see your reply for a while; And yes, I want them to stay in the air. I would like it to act as though you're trying to fly up but there is a block above your head, just invisible, but if there is not a way to do that and it MUST teleport them down a few blocks (Like you had the first time) I guess that's fine.
     
  18. Offline

    Regablith

    Here you go. https://www.dropbox.com/s/03ovx46l3a8eqz1/AloeFly.jar?dl=0
    I made it so it pushes you down a few blocks (no teleporting) so hopefully that works fine.
     
  19. Offline

    Skrubzy

    I'm so sorry xD Hopefully this is my last reply on this, but I just tried turning off the fly and building up above the Y-Level then turning /fly back on. I could fly above the set Y-Level which I don't want. Could you make it so that /fly can not be executed above the set Y-Level (Unless they have the permission node or are in Creative/Spectator) Also could you make it so that the text displayed in chat for toggling flight (and fly bypass) can be edited in the config using color codes?
    EDIT: Also please send me 2 files; one with /fb added to the aliases for /flybypass and one without (My server is survival, but if I want to use this plugin for factions in the future I don't want it to interfere with the factions basic plugin.)
     
    Last edited: Apr 24, 2016
  20. Offline

    Regablith

  21. Offline

    Skrubzy

  22. Offline

    Regablith

    Try adding apostrophes around the string
     
  23. Offline

    Skrubzy

    Ok thanks man! You're an amazing coder lol I'm surprised by how fast you put this together. I think it's perfect now but I still haven't tried everything.
     
    Last edited: Apr 24, 2016
  24. Offline

    Regablith

    Tell me if all goes good
     
  25. Offline

    Skrubzy

    Yeah man it works perfect! There were a few errors but I went into the code and fixed it (I hope you don't mind, but you weren't online and I needed this done today) In case you're curious, when you went above the y-level and tried to turn off fly it would say something like "You can not enable fly above y 50" so I changed it to "You can not toggle fly at this y-level". I would of liked it to have said the y-level you can toggle /fly at but I didn't know how to get it (I'm terrible at coding) I also wanted to be able to toggle /fly above the y-level if you're in creative/spectator or have the permission node but again, I'm bad at coding. If you could implement that it'd be great, you don't have to though.
     
  26. Offline

    Regablith

    Of course you change it and I'll add those things too.
    Where do you want it to say what level you can toggle fly?
     
  27. Offline

    Skrubzy

    "You can not toggle fly mode above y-level ___"
    EDIT: Are you still going to do this? @Regablith
     
    Last edited: Apr 26, 2016
Thread Status:
Not open for further replies.

Share This Page