#Dynamic Properties

1 messages · Page 1 of 1 (latest)

sick glen
#
world.afterEvents.playerSpawn.subscribe((data) => {
    const { intialSpawn, player: source } = data;
    if (!intialSpawn) return;
    if (!world.getDynamicProperty(source.id)) return;
    const baseStats = [
        source.name,
        100, // Money
        0, // Gems
        0, // Rebirth Tokens
        0, // Eggs Opened
        0, // Mobs Killed
        Date.now() // Time Joined
    ];
    world.setDynamicProperty(source.id, JSON.stringify(baseStats));
});```
#

it was working perfectly earlier but NOW when i join a game without a property with my id IT DOES NOTHING

#

I GOT IT