08-07-2014, 05:03 PM
Pages: 1 2
08-07-2014, 06:58 PM
(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.
08-07-2014, 07:10 PM
Oke succes with making it. I will give you developer right on my server when it' s ready as thanks.

08-08-2014, 06:09 AM
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
08-08-2014, 03:24 PM
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.
08-08-2014, 08:43 PM
(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)
08-08-2014, 10:10 PM
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?
08-21-2014, 12:15 AM
I added the hook: https://github.com/mc-server/MCServer/pull/1339
08-21-2014, 12:25 AM
The hook doesn't have the IP parameter, so there's no way to implement this plugin anyway.
Pages: 1 2