Flying plugin

Discussion in 'Plugin Requests' started by AfterArts, Dec 13, 2015.

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

    AfterArts

    Hello! I'm in need of a plugin like this for my upcoming factions server, and I thought it would be a good addition:

    Plugin category: General

    Suggested name: LimitedFly

    What I want: A plugin that only allowed players to fly a certain amount of blocks off the ground. I'd need 5 different groups, which would be "Donator, VIP, Nova, Legend, God, Titan"
    This plugin would only allow these groups to fly a certain amount of blocks off the ground, and this is what I had in mind...
    Donator: 10 blocks
    VIP: 25 blocks
    Legend: 50 blocks
    God: 100 blocks
    Titan: 150 blocks

    Ideas for commands: /fly

    Ideas for permissions: limitedfly.donator, limitedfly.vip limitedfly.nova limitedfly.legend limitedfly.god limitedfly.titan limitedfly.admin (unlimited blocks)

    When I'd like it by: Anytime you can get it done is perfect, thanks again for reading! :)
     
  2. Offline

    MJack

    I can work on this. :)
    Should the player's fly mode just be disabled when they reach their limit or should they be teleported downwards?
     
  3. Offline

    bitFred

    Last edited: Dec 14, 2015
    AfterArts likes this.
  4. Offline

    AfterArts

  5. Offline

    bitFred

    No problem!
     
  6. Offline

    pie_flavor

    @AfterArts Just out of curiosity, is this going to be used on a survival server?
     
  7. Offline

    Jaackk

    Does this mean from the level they type /fly at or the natural ground? What happens when they type /fly above the limit of their permission?
     
  8. Offline

    bitFred

    It's always relative to the ground below them.

    So if you write /fly above your limit it will teleport you to y = ((get closest block to the ground + limit) - the players height (2 blocks)).

    Example:

    Your limit: 30 blocks
    Ground y: 125
    Teleport y: (125+30) - 2 = 153

    Player get teleported to 153 if above limit when typing /fly.
     
  9. Offline

    AfterArts

    No, my new factions server.
     
  10. Offline

    pie_flavor

    @AfterArts But, a server where flying directly affects gameplay?
     
  11. Offline

    Jaackk

    So technically if you place a block in mid air, then jump off it and type /fly while falling under someones faction base you would be teleported into their base? (If you worked it out properly what height you would be at etc)
     
  12. Offline

    bitFred

    That is true, will take you some good time to achieve it though.

    I'm thinking of how you would be able to avoid that without the need of hooking into Factions?
    Whatever value I put there (teleport), there will always be a possibility that something like this would happen.

    You got any ideas to avoid that in the simplest manner?

    You could always make a smooth transition by letting them fall when they are above the limit and then once they do get below it you would activate fly again, hmm.
     
  13. Offline

    AfterArts

    I have some problems with the permission. Even with OP or "limitedfly.admin" players can only fly 10 blocks into the air. If it's not too much trouble can you make the different groups?
    Legend = 30 blocks (limitedfly.legend)
    God = 50 blocks (limitedfly.god)
    Titan = 75 blocks (limitedfly.titan)
    limitedfly.admin = unlimited blocks
    And it would be awesome if the denied flying message was in &a instead of &f. If you can do this, thanks so much again! :)
     
  14. Offline

    bitFred

    I'll fix that tomorrow.
    While you wait, add the permission "limitedfly.titan", that should be sufficient for now.
     
  15. Offline

    Jaackk

    You could just put them on the ground OR teleport them to the nearest block above them that is within their groups limit. I know world edit knows blocks above with /up so this is possible. The first option a lot simpler but the second a lot better but more complicated.
     
  16. Offline

    bitFred

    Updated, should work now

    Download:
    https://drive.google.com/file/d/0B5N06LHtu_ifdHFNbEpFUlVsX1E/view?usp=sharing

    Commands:
    /fly - limitfly.fly
    /fly reload - limitfly.reload

    Groups:
    All groups are now configurable in the config.yml

    limitfly.one
    limitfly.two
    limitfly.three
    limitfly.four
    limitfly.five
    limitfly.admin (unlimited)

    Messages:
    All messages are also configurable in the config.yml

    OBS
    Make sure that you both have limitfly.fly and one of the groups perms in order to be able to fly.
     
    Last edited by a moderator: Dec 18, 2015
    AfterArts likes this.
  17. Offline

    pie_flavor

    @AfterArts I would just like to warn you that having a server feature where people can pay to have an advantage gameplay-wise violates Mojang's EULA, as you can see under the Servers and Hosting section.
     
  18. Offline

    bitFred

Thread Status:
Not open for further replies.

Share This Page