Posts: 116
Threads: 3
Joined: Sep 2014
Thanks: 31
Given 15 thank(s) in 11 post(s)
02-22-2015, 12:12 AM
(This post was last modified: 02-22-2015, 12:17 AM by jan64.)
I suggest using the db to store player coordinates when they logout/disconnect (teleporting player to spawn afterwards), and tp them where they were after logging in - that way, the chances that client gets the coordinates someones at without logging in (before they are teleported) become zero. I didn't really see anyone use this trick to get hidden base coords, but it doesn't mean it's impossible.
Also, hiding player inventory on login could be a nice feature (but, that'd require a way to store it in the db).
Posts: 116
Threads: 3
Joined: Sep 2014
Thanks: 31
Given 15 thank(s) in 11 post(s)
02-22-2015, 08:24 PM
(This post was last modified: 02-22-2015, 08:34 PM by jan64.)
Unless by table you mean a table in storage, tables go away when you reload / restart the server.
We don't want someones position/inventory to disappear with server restarts.
As a side note, having plugin-registerable hooks that fire when someone registers / logs in / logs out could be nice.
(I can code that when rewrite starts working reasonably)
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
I'm having trouble implementing /removeacc.
I need to get the UUID that a belongs to the given username. I tried cMojangAPI:GetUUIDFromPlayerName, but the result I get from there isn't found in the database. I tried some things, and found out that GetUUIDFromPlayerName always returns the online UUID. Shouldn't it return an offline uuid when the server is in offline mode?
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
Is there a way to convert a username to either an offline UUID or an online UUID depending on the settings of the server?
Posts: 116
Threads: 3
Joined: Sep 2014
Thanks: 31
Given 15 thank(s) in 11 post(s)
03-03-2015, 03:10 AM
(This post was last modified: 03-03-2015, 03:11 AM by jan64.)
I don't think we should bother with UUID's at all. This plugin is meant for offline servers.
Maybe add a switch in the config file that'd allow switching between the online UUID's / usernames as identifiers.