Cuberite Forum
SexyMOTD Request - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Requests (https://forum.cuberite.org/forum-3.html)
+--- Thread: SexyMOTD Request (/thread-1543.html)

Pages: 1 2


RE: SexyMOTD Request - Stino - 08-07-2014

If you're going to port SexyMOTD than you need to port ProtocolLib to. Maybe you can implement it?


RE: SexyMOTD Request - Howaner - 08-07-2014

(08-07-2014, 05:03 PM)Stino Wrote: If you're going to port SexyMOTD than you need to port ProtocolLib to. Maybe you can implement it?

I think a good HOOK_SERVER_PING is enough.
ProtocolLib isn't needed.


RE: SexyMOTD Request - Stino - 08-07-2014

Oke succes with making it. I will give you developer right on my server when it' s ready as thanks.Big Grin


RE: SexyMOTD Request - Howaner - 08-08-2014

Is this good enough?
-- HOOK_SERVER_PING
function OnServerPing(PlayerName, Motd, CurrentPlayers, MaxPlayers, Favicon, OnlinePlayersList)
	-- Modify max players
	MaxPlayers = 0
	return false, PlayerName, Motd, CurrentPlayers, MaxPlayers, Favicon, OnlinePlayersList
end



RE: SexyMOTD Request - xoft - 08-08-2014

What's the datatype for Favicon and OnlinePlayersList? And don't call it Motd, it's ServerDescription; MOTD is the message sent to the player the first thing they connect.


RE: SexyMOTD Request - Howaner - 08-08-2014

(08-08-2014, 03:24 PM)xoft Wrote: What's the datatype for Favicon and OnlinePlayersList? And don't call it Motd, it's ServerDescription; MOTD is the message sent to the player the first thing they connect.

OnlinePlayersList - StringList
Favicon - AString (Base64 Image)


RE: SexyMOTD Request - xoft - 08-08-2014

I'm more interested in the Lua datatypes. There's no StringList type in Lua. Will it be a regular array-table containing strings? What if the plugin returns a table containing other stuff than strings? What if it returns an empty string? Or a number?


RE: SexyMOTD Request - Howaner - 08-21-2014

I added the hook: https://github.com/mc-server/MCServer/pull/1339


RE: SexyMOTD Request - xoft - 08-21-2014

The hook doesn't have the IP parameter, so there's no way to implement this plugin anyway.