package Ġworld . greg s . void ps . world . activity . skill . pr ayer Ċ Ċ import Ġcom . github . m ichael bull . logging . Inline Logger Ċ import Ġworld . greg s . void ps . engine . action . ActionType Ċ import Ġworld . greg s . void ps . engine . action . action Ċ import Ġworld . greg s . void ps . engine . client . message Ċ import Ġworld . greg s . void ps . engine . entity . character . contain . inventory Ċ import Ġworld . greg s . void ps . engine . entity . character . player . Player Ċ import Ġworld . greg s . void ps . engine . entity . character . player . chat . Chat Type Ċ import Ġworld . greg s . void ps . engine . entity . character . player . skill . Skill Ċ import Ġworld . greg s . void ps . engine . entity . character . update . visual . set Animation Ċ import Ġworld . greg s . void ps . engine . entity . has Or Start Ċ import Ġworld . greg s . void ps . engine . event . on Ċ import Ġworld . greg s . void ps . world . interact . entity . player . equip . Container Option Ċ Ċ val Ġlogger Ġ= ĠInline Logger () Ċ Ċ on < Container Option >({ Ġcontainer Ġ== Ġ" inventory " Ġ&& Ġitem . def . has (" pr ayer _ xp ") Ġ&& Ġoption Ġ== Ġ" B ury " Ġ}) Ġ{ Ġplayer : ĠPlayer Ġ-> ĊĠĠĠ Ġif Ġ( player . has Or Start (" sk illing _ delay ", Ġ 1 )) Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn @ on ĊĠĠĠ Ġ} ĊĠĠĠ Ġval Ġxp Ġ= Ġitem . def [" pr ayer _ xp ", Ġ 0 . 0 ] ĊĠĠĠ Ġif Ġ( xp Ġ<= Ġ 0 . 0 ) Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . warn Ġ{ Ġ" Missing Ġbone Ġxp : Ġ${ item . name }" Ġ} ĊĠĠĠĠĠĠĠ Ġreturn @ on ĊĠĠĠ Ġ} ĊĠĠĠ Ġplayer . action ( ActionType . B ury ing ) Ġ{ ĊĠĠĠĠĠĠĠ Ġplayer . message (" You Ġdig Ġa Ġhole Ġin Ġthe Ġground .", ĠChat Type . Game Filter ) ĊĠĠĠĠĠĠĠ Ġdelay ( 1 ) ĊĠĠĠĠĠĠĠ Ġif Ġ( player . inventory . remove ( slot , Ġitem . name , Ġ 1 )) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġplayer . experience . add ( Skill . Pr ayer , Ġxp ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġplayer . set Animation (" bur y _ bones ") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġplayer . message (" You Ġb ury Ġthe Ġ${ item . def . name . toLowerCase ()}. ", ĠChat Type . Game Filter ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }