PlayerJoin constructor
This will create a score
that counts leave_game stats and checks if the player has the score
thus detecting if a player joins.
constructor | |
---|---|
then | A Widget that gets executed by the player that joins |
target | The targeted player that will throw this event(default = @a) |
score | The scoreboard that is used(default = objd_join ) |
Implementation
PlayerJoin({
required this.then,
this.target,
this.score = 'objd_join',
}) : subcommand = "join",
_then_v = null;