package Ġworld . greg s . void ps . engine . client . instruction . handle Ċ Ċ import Ġworld . greg s . void ps . engine . client . instruction . Instruction Handler Ċ import Ġworld . greg s . void ps . engine . entity . character . player . Player Ċ import Ġworld . greg s . void ps . engine . entity . character . player . chat . Join Cl an Chat Ċ import Ġworld . greg s . void ps . engine . entity . character . player . chat . Leave Cl an Chat Ċ import Ġworld . greg s . void ps . network . in struct . Cl an Chat Join Ċ Ċ class ĠCl an Chat Join Handler Ġ: ĠInstruction Handler < Cl an Chat Join >() Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġvalidate ( player : ĠPlayer , Ġinstruction : ĠCl an Chat Join ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( instruction . name . isBlank ()) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġplayer . events . emit ( Leave Cl an Chat ( forced Ġ= Ġfalse )) ĊĠĠĠĠĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġplayer . events . emit ( Join Cl an Chat ( instruction . name )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ Ċ }