Created
January 3, 2014 03:12
-
-
Save seriallos/8231976 to your computer and use it in GitHub Desktop.
Starbound UUID Logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"__merge": [], | |
"baseParameters": { | |
"scripts": [ "/scripts/uuidlog.lua" ] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function init() | |
if (math['uuids'] == nil) then | |
math['uuids'] = {} | |
end | |
local playerIds = world.playerQuery( entity.position(), 100 ) | |
for _, playerId in pairs(playerIds) do | |
local playerName = world.entityName( playerId ) | |
local playerUuid = world.entityUuid( playerId ) | |
if( math['uuids'][ playerName ] == nil ) then | |
world.logInfo( "UUID Log: <"..playerName.."> ("..playerUuid..")" ) | |
math['uuids'][ playerName ] = playerUuid | |
end | |
end | |
end | |
function main() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment