Stefan added a findplayer2 (which now accepts both account and community names) function, which kind of breaks my code snippet.
I've since used this code instead of my findplayer2 function:
PHP Code:
function onCreated() {
// Load Player
temp.pl = findplayer(acct);
temp.offline = temp.pl == NULL;
temp.pl = temp.offline ? new TServerPlayer(@acct) : temp.pl;
// Manipulate player object...
// Save and destroy
if (temp.offline) {
temp.pl.saveaccount();
temp.pl.destroy();
}
}