package Ġpw . dot dash . b ending . plugin . command Ċ Ċ import Ġorg . spongepowered . api . command . Command Exception Ċ import Ġorg . spongepowered . api . command . Command Result Ċ import Ġorg . spongepowered . api . command . Command Source Ċ import Ġorg . spongepowered . api . command . args . Command Context Ċ import Ġorg . spongepowered . api . command . args . Generic Arguments .* Ċ import Ġorg . spongepowered . api . command . spec . Command Executor Ċ import Ġorg . spongepowered . api . command . spec . Command Spec Ċ import Ġorg . spongepowered . api . entity . living . player . Player Ċ import Ġorg . spongepowered . api . service . pagination . Pagination List Ċ import Ġorg . spongepowered . api . text . Text Ċ import Ġorg . spongepowered . api . text . format . Text Colors . G OLD Ċ import Ġorg . spongepowered . api . text . format . Text Colors . YELLOW Ċ import Ġpw . dot dash . b ending . api . b ender . B ender Ċ import Ġpw . dot dash . b ending . api . b ender . B ender Service Ċ import Ġpw . dot dash . b ending . api . util . unwrap Ċ Ċ object ĠCommand B ending Display Ġ: ĠCommand Executor Ġ{ ĊĊĠĠĠ Ġval ĠSPEC : ĠCommand Spec Ġ= ĠCommand Spec . builder () ĊĠĠĠĠĠĠĠ Ġ. permission (" b ending . user . display . base ") ĊĠĠĠĠĠĠĠ Ġ. arguments ( optional ( only One ( player ( Text . of (" player ")) ))) ĊĠĠĠĠĠĠĠ Ġ. executor ( this ) ĊĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠ Ġoverride Ġfun Ġexecute ( src : ĠCommand Source , Ġargs : ĠCommand Context ): ĠCommand Result Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtarget : ĠPlayer Ġ= Ġargs . getOne < Player >( Text . of (" player ")). unwrap () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ?: Ġsrc Ġas ? ĠPlayer ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ?: Ġthrow ĠCommand Exception ( Text . of (" You Ġmust Ġspecify Ġthe Ġplayer Ġargument .")) ĊĊĠĠĠĠĠĠĠ Ġval Ġb ender : ĠB ender Ġ= ĠB ender Service . getInstance (). get OrCreate B ender ( target ) ĊĊĠĠĠĠĠĠĠ Ġval Ġpagination : ĠPagination List Ġ= ĠPagination List . builder () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. title ( Text . of ( YELLOW , Ġ" Abilities : Ġ${ target . name } ")) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. padding ( Text . of ( G OLD , Ġ"=" )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. contents ( b ender . hot bar . map Ġ{ Ġit . unwrap ()?. type ?. show () Ġ?: ĠText . of ("< none >") Ġ}) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. build () ĊĊĠĠĠĠĠĠĠ Ġpagination . send To ( src ) ĊĊĠĠĠĠĠĠĠ Ġreturn ĠCommand Result . success () ĊĠĠĠ Ġ} Ċ }