Advertisement
Guest User

Untitled

a guest
Nov 28th, 2015
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.94 KB | None | 0 0
  1.                     else if (action.startsWith("rep"))
  2.                     {
  3.                         try
  4.                         {
  5.                             final int points = Integer.parseInt(st.nextToken());
  6.                             final L2Clan clan = player.getClan();
  7.                            
  8.                             if (clan.getLevel() < 5)
  9.                             {
  10.                                 activeChar.sendMessage("Only clans of level 5 or above may receive reputation points.");
  11.                                 showMainPage(activeChar);
  12.                                 return false;
  13.                             }
  14.                            
  15.                             clan.addReputationScore(points);
  16.                             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());
  17.                             clan.addReputationScore2(points);
  18.                             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());                          
  19.                         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement