package Ġme . br am ha ag . min ig ame framework . n uk kit . listener Ċ Ċ import Ġcn . n uk kit . event . EventHandler Ċ import Ġcn . n uk kit . event . Event Priority Ċ import Ġcn . n uk kit . event . Listener Ċ import Ġcn . n uk kit . event . player . Player Drop Item Event Ċ import Ġme . br am ha ag . min ig ame framework . event . events . player . Player Drop Event Ċ import Ġme . br am ha ag . min ig ame framework . n uk kit . N uk kit Game Handler Ċ import Ġme . br am ha ag . min ig ame framework . player . Abstract Player Ċ Ċ class ĠPlayer Drop Listener ( private Ġval Ġgame Handler : ĠN uk kit Game Handler ) Ġ: ĠListener Ġ{ ĊĊĠĠĠ Ġ@ EventHandler ( priority Ġ= ĠEvent Priority . HIG HE ST ) ĊĠĠĠ Ġfun Ġon Item Drop ( e : ĠPlayer Drop Item Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġn uk kit Player Ġ= ĠAbstract Player . players [ e . player . unique Id ] ĊĠĠĠĠĠĠĠ Ġif ( n uk kit Player ?. game Ġ== Ġnull ) Ġreturn ĊĊĠĠĠĠĠĠĠ Ġif ( game Handler . event Handler . call Event ( n uk kit Player , ĠPlayer Drop Event ( n uk kit Player ))) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġe . is Cancelled Ġ= Ġtrue ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }