Multiverse-Core icon indicating copy to clipboard operation
Multiverse-Core copied to clipboard

Per world Flying

Open gabessdsp opened this issue 14 years ago • 34 comments

I want a feature where I can allow users to fly in x world but disallow it in y world.

gabessdsp avatar Jan 29 '12 04:01 gabessdsp

This is a problem for your permissions plugin, not Multiverse.

timothyekl avatar Jan 29 '12 05:01 timothyekl

@lithium3141 Actually, we can do this :P as of Bukkit/Bukkit@c84c5a21326c96ca0d5a69e09c9d539c1b038a01

I already have the code done, but I need a client mod to test it. @gabessdsp what do you use for flight?

fernferret avatar Jan 29 '12 23:01 fernferret

We can, but should we?

timothyekl avatar Jan 29 '12 23:01 timothyekl

Heh, good point, @gabessdsp why not just use creative mode?

fernferret avatar Jan 29 '12 23:01 fernferret

Well I allow my users to use client side fly mods but it is a survival server, there is a world I want to allow flying in, but I want to disallow it. Personally for flying I use MyCraft built-in

gabessdsp avatar Jan 31 '12 22:01 gabessdsp

Regardless I've bumped this to 2.4 for the moment. I did commit my work on it though. If you're brave you can compile this branch and test it out: https://github.com/Multiverse/Multiverse-Core/tree/allow-flight.

fernferret avatar Jan 31 '12 23:01 fernferret

Is this in Multiverse or is it still being done?

TechMz avatar Apr 30 '12 12:04 TechMz

It is not done because no one will verify that it works. I've already coded it up, and put it on a branch, but every time I ask someone to test it they disappear...

By this time though, it may be out of date... (we'll just have to pull the newest changes into that branch)

Regardless I've bumped this to 2.4 for the moment. I did commit my work on it though. If you're brave you can compile this branch and test it out: https://github.com/Multiverse/Multiverse-Core/tree/allow-flight.

fernferret avatar Apr 30 '12 14:04 fernferret

I'll leave his tab open. Tell me how to test it and I will.

TechMz avatar Apr 30 '12 14:04 TechMz

@TechMz This is the compiled branch. Just use that on a test-server, install a flymod on your client and test it.

main-- avatar Apr 30 '12 14:04 main--

Okay, don't expect a straight away reply. Expect at least by the max 24 hours.

TechMz avatar Apr 30 '12 14:04 TechMz

Well I just ran this on the latest bukkit RB (1.2.5 RB1) and it loaded the config but I can't see the fly option. Note I am running this on my test server.

Config:

worlds:
  world:
    seed: -2285602399587190189
    environment: NORMAL
    type: NORMAL
    hidden: false
    alias:
      name: ''
      color: WHITE
    pvp: true
    scale: 1.0
    respawnworld: ''
    allowweather: true
    difficulty: EASY
    animals:
      spawn: true
    monsters:
      spawn: true
    entryfee:
      currency: -1
      price: 0.0
    hunger: true
    autoheal: true
    adjustspawn: true
    portalform: ALL
    gamemode: SURVIVAL
    keepspawninmemory: true
    spawn:
      x: 248.5
      y: 64.0
      z: 253.5
      pitch: 0.0
      yaw: 0.0
      world: world
    autoload: true
    Set this to false ONLY if you don't want this world to load itself on server restart: false
    bedrespawn: true

TechMz avatar Apr 30 '12 17:04 TechMz

@FernFerret I'm pretty sure that the property just wasn't added in one of these jillions of files we have to edit when we want to add new properties. We really need to pull #547 :/

main-- avatar Apr 30 '12 19:04 main--

Then let's pull it! I tested it and it worked fine enough for me :D You should have pulling rights!

fernferret avatar Apr 30 '12 19:04 fernferret

I updated to jenkins build 529. I updated and the config was different but that's fine and all. I checked and you have no 'Keep spawn in memory', you might have it now but you didn't in 529. Also please tell me when you're going to add to 'allow flight' option. :)

TechMz avatar May 01 '12 14:05 TechMz

@FernFerret I've tested allow-flight and the MV-code seems to work, however org.bukkit.entity.Player.setAllowFlight(boolean) doesn't result in any visible changes. Bug?

main-- avatar May 03 '12 15:05 main--

Hmm, I'd think it should kick you for flying if you don't have that flag set

fernferret avatar May 03 '12 15:05 fernferret

Do you know when this will be in a dev build?

Also should I start another ticket or can I say it here?

Could you add a thing in the world config

Permission to build: true/false

and the permission node could be multiverse.build?

Anyway please tell me when the per world flying will be available.

TechMz avatar May 11 '12 16:05 TechMz

Do you know when this will be in a dev build?

Also should I start another ticket or can I say it here?

I've scheduled it for 2.5.

Could you add a thing in the world config

Permission to build: true/false

and the permission node could be multiverse.build?

Try something like worldguard or your favorite permissions plugin, those should have this.

fernferret avatar Oct 20 '12 04:10 fernferret

Ok, Thanks for pointing me in the right direction, Here is my problem, I made a custom plugin for my server that they type /fly and it allows flight for them server side, using the p.setAllowFlight() method. Basically, all I want you guys to do is add a line in the config so that you can say if flying would be either allowed or denied, so then if it's allowed you don't do anything, if it's denied, any player that comes into the world you just use p.setAllowFlight(false); and p.setFlying(false);

Travja avatar Oct 23 '12 22:10 Travja