Sanity 435 Posted September 28, 2017 Report Share Posted September 28, 2017 Since many players asking for it, so here you go : ItemActionPacketListener.java : case #####: ClanChat clan = player.getCurrentClanChat(); if (clan == null) { player.getPacketSender().sendMessage("You need to be in a clan to do this."); return; } else { player.performAnimation(new Animation(774, Priority.HIGH)); player.getPacketSender().sendMessage("@cr2@ [@red@Dice@bla@][" + clan.getName() +"] <shad=16112652>"+player.getUsername()+"<shad=000000> has just rolled a <shad=16112652>" +Misc.getRandom(100)+ "<shad=000000>/100."); } break; Dice [Clanchatname] Your user name and the rest of the message. Looks like this : This is the hidden content, please Sign In or Sign Up (UPloading the image soon) 1 Link to comment Share on other sites More sharing options...
SpiritOfTheLau 0 Posted May 9, 2020 Report Share Posted May 9, 2020 The else statement isn't necessary here. If your clan is null, the message is sent to the player and we return out of the function so the rest of the code can never occur anyway. Good work otherwise Link to comment Share on other sites More sharing options...
MemeManJoe 0 Posted January 16, 2022 Report Share Posted January 16, 2022 good work man Link to comment Share on other sites More sharing options...
Ary3x 0 Posted February 14, 2022 Report Share Posted February 14, 2022 Was looking for this thanks Link to comment Share on other sites More sharing options...
 nordvpn123 1 Posted November 22, 2022 Report Share Posted November 22, 2022 Thanks m8 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now