Blockland Files > Add-Ons

[Event] Save Datablock

(1/2) > >>

Goth77:
Event_SaveDatablock
v3

An event that saves the player datablock, and restores it upon respawn

Credit to "Im_AFK" for the idea

DOWNLOAD

Im_AFK:
gothboy goated

Goth77:
re-download if u got v2, v3 fixes a missing )

added a server pref $Pref::Server::RestorePlayerDatablocksOnResp awn set to false if you ever need to disable loading saved player datablock on respawn

Im_AFK:
just tried it out, and I wasn't able to get it to work.

This is what I tried:

onactivate > player > changedatablock > dragon land
onactivate > player > savedatablock

then ctrl k'd and it reverted me back to the standard playertype/minigame playertype

is it possible that the event doesn't support custom playertypes, or could be an add-on conflict?
I am using blockland glass, if that matters

Crook:

--- Quote from: Goth77 on November 14, 2022, 03:58:02 PM ---re-download if u got v2, v3 fixes a missing )

added a server pref $Pref::Server::RestorePlayerDatablocksOnResp awn set to false if you ever need to disable loading saved player datablock on respawn

--- End quote ---
if(isObject(%client.savedDatablock && $Pref::Server::RestorePlayerDatablocksOnResp awn $= true))

You put the second statement within the isObject check, so it will always return false. Pushing out requests super quick is nice, but you should really test your addon before you go through the effort of uploading and posting it.

Navigation

[0] Message Index

[#] Next page

Go to full version