package Ġcom . hack club . hc core . listeners import Ċ Ċ import Ġcom . comp hen ix . protocol . wrappers . Player Info Data Ċ import Ġjava . util . ArrayList Ċ Ċ com . hack club . hc core . H CC ore Plugin Ċ import Ġcom . hack club . hc core . Player Data Ċ import Ġcom . hack club . hc core . tasks . Check Ad A stra Task Ċ import Ġcom . hack club . hc core . utils . gson . Gson Util Ċ import Ġcom . hack club . hc core . utils . gson . Location Serializer Ċ import Ġcom . hack club . hc core . utils . gson . Location Map Deserializer Ċ import Ġcom . hack club . hc core . utils . gson . Location Map Serializer Ċ import Ġcom . hack club . hc core . utils . gson . Location Deserializer Ċ import Ġjava . util . Linked HashMap Ċ import Ġcom . hack club . hc core . events . player . Player AF K Status ChangeEvent Ċ import Ġnet . dv 8 tion . j da . api . hooks . Listener Adapter Ċ import Ġnet . dv 8 tion . j da . api . J DA Ċ import Ġnet . dv 8 tion . j da . api . entities . Text Channel Ċ import Ġnet . dv 8 tion . j da . api . events . Ready Event Ċ import Ġnet . dv 8 tion . j da . api . Embed Builder Ċ import Ġnet . dv 8 tion . j da . api . events . message . guild . Guild Message Received Event Ċ import Ġnet . dv 8 tion . j da . api . J DA Builder Ċ import Ġjavax . security . auth . login . Login Exception Ċ import Ġjava . lang . Exception Ċ import Ġcom . hack club . hc core . commands . Color Command Ċ import Ġjava . util . stream . Collectors Ċ import Ġcom . hack club . hc core . commands . Stats Command Ċ import Ġjava . text . SimpleDateFormat Ċ import Ġcom . hack club . hc core . commands . Up vote Command Ċ import Ġcom . hack club . hc core . commands . Down vote Command Ċ import Ġcom . hack club . hc core . commands . Table flip Command Ċ import Ġjava . lang . Runnable Ċ import Ġcom . hack club . hc core . listeners . Sleep Listener Ċ import Ġcom . comp hen ix . protocol . events . Listener Priority Ċ import Ġcom . comp hen ix . protocol . Packet Type Ċ import Ġcom . comp hen ix . protocol . events . Packet Adapter Ċ import Ġcom . comp hen ix . protocol . events . Packet Event Ċ import Ġcom . comp hen ix . protocol . wrappers . Enum Wrappers Ċ import Ġcom . comp hen ix . protocol . wrappers . Wrapped Game Profile Ċ import Ġorg . bukkit . craft bukkit . v 1 _ 1 7 _ R 1 . advance ment . Craft Advance ment Ċ import Ġnet . minecraft . advance ments . Advance ment Display Ċ import Ġnet . minecraft . network . chat . I Chat Base Component Ċ import Ġnet . minecraft . advance ments . Advance ment Frame Type Ċ import Ġde . tr 7 zw . change me . nbt api . NB TT ile Entity Ċ import Ġjava . io . FileReader Ċ import Ġjava . io . IOException Ċ import Ġjava . io . FileWriter Ċ import Ġjava . util . UUID Ċ import Ġjava . util . HashMap Ċ import Ġcom . hack club . hc core . DataManager Ċ import Ġcom . comp hen ix . protocol . Protocol Manager Ċ import Ġcom . hack club . hc core . discord . Discord Bot Ċ import Ġcom . comp hen ix . protocol . Protocol Library Ċ import Ġcom . hack club . hc core . commands . AF K Command Ċ import Ġcom . hack club . hc core . commands . Loc Command Ċ import Ġcom . hack club . hc core . commands . Nick Command Ċ import Ġcom . hack club . hc core . commands . Ping Command Ċ import Ġcom . hack club . hc core . commands . Sh r ug Command Ċ import Ġcom . hack club . hc core . commands . Spawn Command Ċ import Ġcom . hack club . hc core . commands . Discord Command Ċ import Ġcom . hack club . hc core . listeners . Advance ment Listener Ċ import Ġcom . hack club . hc core . listeners . AF K Listener Ċ import Ġcom . hack club . hc core . listeners . B ee hive Interaction Listener Ċ import Ġcom . hack club . hc core . listeners . Player Listener Ċ import Ġcom . hack club . hc core . listeners . Name ChangeListener Ċ import Ġcom . hack club . hc core . tasks . Auto AF K Task Ċ import Ġhu . trig ary . advance ment creator . Advance ment Factory Ċ import Ġhu . trig ary . advance ment creator . shared . Item Object Ċ Ċ // ĠModified Ġfrom Ġhttps :// gist . github . com / Tech c able / d 5 7 4 a 6 e 7 8 ada 3 b 8 5 1 1 bd Ċ class ĠName ChangeListener ( plugin : ĠH CC ore Plugin ?, Ġlistener Priority : ĠListener Priority ?, ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġvar arg Ġtypes : ĠPacket Type ?) Ġ: ĠPacket Adapter ( params ( plugin , Ġ* types ). listener Priority ( listener Priority !! )) Ġ{ ĊĠĠĠ Ġprivate Ġval Ġplugin : ĠH CC ore Plugin ĊĠĠĠ Ġoverride Ġfun Ġon Packet Sending ( event : ĠPacket Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġ// ĠOnly Ġintercept Ġpackets Ġthat Ġadd Ġplayers Ġto Ġthe Ġlist ĊĠĠĠĠĠĠĠ Ġif Ġ( event . packet . player Info Action ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. read ( 0 ) Ġ!= ĠEnum Wrappers . Player Info Action . ADD _ PLAYER ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġval Ġplayer Info DataList Ġ= Ġevent . packet . player Info Data Lists . read ( 0 ) ĊĠĠĠĠĠĠĠ Ġval Ġnew Player Info DataList : ĠMutable List < Player Info Data ?> Ġ= ĠArrayList () ĊĠĠĠĠĠĠĠ Ġfor Ġ( player Info Data Ġin Ġplayer Info DataList ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġplayer Ġ= Ġevent . player . server . getPlayer ( player Info Data !!. profile . uuid ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// ĠIf Ġany Ġof Ġthis Ġdoesn 't Ġexist Ġbut Ġit 's Ġin Ġthe Ġlist , Ġjust Ġadd Ġit Ġto Ġthe Ġnew Ġone ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// Ġand Ġforget Ġabout Ġit . ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( player Info Data Ġ== Ġnull Ġ|| Ġplayer Info Data . profile Ġ== Ġnull Ġ|| Ġplayer Ġ== Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġnew Player Info DataList . add ( player Info Data ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcontinue ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// ĠCreate Ġa Ġprofile Ġwith Ġa Ġcustom Ġname Ġfrom Ġcurrent Ġone ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval ĠnewName : ĠString Ġ= Ġthis . plugin . getData Manager (). getData ( player ). get Us able Name () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġnew Profile Ġ= Ġplayer Info Data . profile . with Name ( new Name ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// ĠCopy Ġproperties Ġ( currently Ġjust Ġskin Ġtexture ) Ġto Ġnew Ġprofile ĊĠĠĠĠĠĠĠĠĠĠĠ Ġnew Profile . properties . put All ( player Info Data . profile . properties ) ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// ĠPut Ġall Ġof Ġthe Ġinfo Ġfrom Ġthe Ġold Ġprofile Ġinto Ġthe Ġnew Ġone ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġnew Player Info Data Ġ= ĠPlayer Info Data ( new Profile , Ġplayer Info Data . latency , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġplayer Info Data . game Mode , Ġplayer Info Data . displayName ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġnew Player Info DataList . add ( new Player Info Data ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġ// ĠSend Ġthe Ġmodified Ġlist ĊĠĠĠĠĠĠĠ Ġevent . packet . player Info Data Lists . write ( 0 , Ġnew Player Info DataList ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . plugin Ġ= Ġplugin ĊĠĠĠ Ġ} Ċ }