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));
});```
#Dynamic Properties
1 messages · Page 1 of 1 (latest)