Posted September 28, 20177 yr comment_13283 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 : http://prnt.sc/f4vjgy (UPloading the image soon)
May 9, 20205 yr comment_54866 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
Create an account or sign in to comment