mcpelauncher-linux icon indicating copy to clipboard operation
mcpelauncher-linux copied to clipboard

[server] More configuration options

Open codehz opened this issue 7 years ago • 14 comments

E.g generator (tested, and 0 = Old World Type 1 = Infinite World(Normal) 2= Super Flat) cheat mode (I've no idea for that, but this option is very important) max view distance (ditto, but this options may be not configurable...)

Although some options can now be enabled by uploading level files :)

codehz avatar Jan 13 '18 06:01 codehz

I don't know why cheats are not enabled by default, but well, I'll fix it in a bit. As for the rest option, I added them. Also, MOTD can finally now be set so the server actually shows up in the server list: screenshot from 2018-01-13 13-24-20

MCMrARM avatar Jan 13 '18 12:01 MCMrARM

can we join that that sever

Artistic-Waffle avatar Jan 14 '18 03:01 Artistic-Waffle

@MCMrARM Still cannot use the command in game image

codehz avatar Jan 14 '18 07:01 codehz

Make sure you are op/have the 👑 in game

guppy42 avatar Jan 14 '18 08:01 guppy42

@guppy42 Not working... image But I can adjust the game setting in client to enable the cheats now, and then I can use command!(op) The OP permission settings do not seem to be persistent, If I leave the game and join again, I must re-enter op CodeHz in terminal or I will lose the OP permission... image

codehz avatar Jan 14 '18 08:01 codehz

Cheats are enabled only for new worlds.

MCMrARM avatar Jan 14 '18 11:01 MCMrARM

As for the op list, yes, currently I do not load the op list or whitelist.

MCMrARM avatar Jan 14 '18 11:01 MCMrARM

@MCMrARM I think they(op list and white list) are not core feature for the launcher, so they can be mods...

If they are implemented as mods, they will be good examples for mod developing and have more scalability.

I think op list and white list can be implemented by hooking the function that handle players to join the game.(_ZNK9minecraft3api15PlayerInterface23handlePlayerJoinedEventER6Player ?)

codehz avatar Jan 14 '18 11:01 codehz

I am currently doing some tests about modding the dedicated server. If you want to see an example, I uploaded a simple mod to show a welcome message on joining: https://github.com/julianwi/mcpelauncher-linux/commit/d62f5f98f5564a7b7557ae0abeec4446fa2f995a.

julianwi avatar Jan 14 '18 14:01 julianwi

meh this is not the way you should be doing the mods :P but the other way is kind of broken currently, I guess I'll see soon what can be done

MCMrARM avatar Jan 14 '18 15:01 MCMrARM

I wonder, does MCPE not store the permissions set in the pause menu?

MCMrARM avatar Jan 15 '18 17:01 MCMrARM

@MCMrARM I'd think so, the permission is not stored, but the game mode and inventory have been stored(tested in real Android device's server). the default permission can be chosen in menu..and I believe that the white list have also been "replaced" by Xbox Account's visibility policy:)

codehz avatar Jan 15 '18 17:01 codehz

@MCMrARM It seems there is PermissionsHandler::getPlayerPermissions() function to get the permission information...But I don't know why it does not working, or it is not for Operator Permission level?

codehz avatar Jan 16 '18 03:01 codehz

Fixed the operator list not persisting

MCMrARM avatar Jan 16 '18 15:01 MCMrARM