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
https://www.dropbox.com/s/03ovx46l3a8eqz1/AloeFly.jar?dl=1 Commands: /fly (aloefly.use) /flybypass (aloefly.use.bypass) /aloefly reload (op)
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:
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?
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"?
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.
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?
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.
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?
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.
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.
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.)
Here you go: https://www.dropbox.com/s/03ovx46l3a8eqz1/AloeFly.jar?dl=0 It's un-tested but should work.
For some reason I can't add a color code (&) to the first word of text in the configuration. It turns like a light brown color but I don't know why
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.
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.
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?