Per world Flying
I want a feature where I can allow users to fly in x world but disallow it in y world.
This is a problem for your permissions plugin, not Multiverse.
@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?
We can, but should we?
Heh, good point, @gabessdsp why not just use creative mode?
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
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.
Is this in Multiverse or is it still being done?
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.
I'll leave his tab open. Tell me how to test it and I will.
@TechMz This is the compiled branch. Just use that on a test-server, install a flymod on your client and test it.
Okay, don't expect a straight away reply. Expect at least by the max 24 hours.
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
@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 :/
Then let's pull it! I tested it and it worked fine enough for me :D You should have pulling rights!
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. :)
@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?
Hmm, I'd think it should kick you for flying if you don't have that flag set
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.
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.
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);