When adding more than a string, in this case an array, it has issues granting the player the data
//ABILITIES
event.register(
Commands.literal("pa_rejuvenating_strike")
.requires(src => src.hasPermission(2))
.executes((ctx) => {
var player = ctx.source.getEntity()
player.persistentData.puff_abilities[0].abilty = 'rejuvenating_strike';
player.persistentData.puff_abilities[0].on_cooldown = 0;
return;
})
)
event.register(
Commands.literal("pa_arrow_volley")
.requires(src => src.hasPermission(2))
.executes((ctx) => {
var player = ctx.source.getEntity()
player.persistentData.puff_abilities[0].abilty = 'volley_of_arrows';
player.persistentData.puff_abilities[0].on_cooldown = 0;
return;
})
)