satoshinm / WebSandboxMC

Bukkit plugin providing a web-based interface with an interactive WebGL 3D preview or glimpse of your server 🕷⏳📦 ⛺
https://www.spigotmc.org/resources/websandboxmc.39415/
MIT License
19 stars 5 forks source link

Cuberite support (Lua) #98

Open satoshinm opened 7 years ago

satoshinm commented 7 years ago

https://github.com/cuberite/cuberite is a server written in C++ and seems to be more active than Glowstone at least recently by GitHub commit notifications:

screen shot 2017-07-07 at 6 23 12 pm

it is also in a language not too far from NetCraft (C vs C++), instead of something completely different (Glowstone and Bukkit are Java, and so is https://github.com/satoshinm/WebSandboxMC/issues/51 Sponge). The rise of Cuberite's prominence cannot be ignored, I believe it is worthwhile investigating it as a server backend with something like WebSandboxMC.

The problem of course is WebSandboxMC is only written in Java, so this would require a rewrite. Cuberite has Lua plugins, but could "plugins" or other extensions be written in C/C++? As another "protocol backend" to Cuberite, which already supports many protocols? What's the best approach?

satoshinm commented 7 years ago

https://api.cuberite.org/Writing-a-Cuberite-plugin.html

satoshinm commented 7 years ago

LuaRocks https://luarocks.org is the Lua package manager, it does have packages for websockets: https://luarocks.org/modules/moteus/lua-websockets-core