Implement ops
Only ops should be able to kick and ban.
We should first implement a permissions system.
Well this is the permissions system
Yes, but I mean not like normal minecraft's permission system. I am talking about a good one
Something like, (not real JSON, I think)
[
{
"name": "mhsjlw",
"permissions": [
"*"
]
},
{
"name": "rom1504",
"permissions": [
"world-guard.*"
]
}
]
I think it would be best to simply implement ops (wouldn't be hard, just player.op) and use that ("return" inside a command if the player is not an op). I imagine somebody will make an advanced permissions base-external-plugin that other plugins will build on top of.
Just my personal opinion so we can get as similar to vanilla as possible.
I'm fine with both solutions.
Sorta done in the other PR
We're still missing the saving/loading part
Okay, although that seems like a completely seperate issue considering nothing gets saved yet :P
well, ops saving/loading is fairly independent from all the rest of the saving if we follow vanilla format (it's just a ops.json file) (https://github.com/rom1504/node-minecraft-wrap/blob/master/lib/wrap.js#L113)