PlayerJoin.rejoin constructor

PlayerJoin.rejoin({
  1. required Widget? then,
  2. Entity? target,
  3. String score = 'objd_join',
})

This will create a score that counts leave_game stats and thus detects if a player rejoins.

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.rejoin({
  required this.then,
  this.target,
  this.score = 'objd_join',
})  : subcommand = "rejoin",
      _then_v = null;