Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (action.startsWith("rep"))
- {
- try
- {
- final int points = Integer.parseInt(st.nextToken());
- final L2Clan clan = player.getClan();
- if (clan.getLevel() < 5)
- {
- activeChar.sendMessage("Only clans of level 5 or above may receive reputation points.");
- showMainPage(activeChar);
- return false;
- }
- clan.addReputationScore(points);
- activeChar.sendMessage("You " + (points > 0 ? "added " : "removed ") + Math.abs(points) + " points " + (points > 0 ? "to " : "from ") + clan.getName() + "'s reputation. Their CURRENT score is: " + clan.getReputationScore());
- clan.addReputationScore2(points);
- activeChar.sendMessage("You " + (points > 0 ? "added " : "removed ") + Math.abs(points) + " points " + (points > 0 ? "to " : "from ") + clan.getName() + "'s reputation. Their OVERALL score is: " + clan.getReputationScore2());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement