Преглед на файлове

Merge pull request #136 from jurchiks/master

Implemented clan notice editing.
Zoey76 преди 10 години
родител
ревизия
af46b13642
променени са 1 файла, в които са добавени 10 реда и са изтрити 2 реда
  1. 10 2
      L2J_DataPack/dist/game/data/scripts/handlers/communityboard/ClanBoard.java

+ 10 - 2
L2J_DataPack/dist/game/data/scripts/handlers/communityboard/ClanBoard.java

@@ -283,7 +283,15 @@ public class ClanBoard implements IWriteBoardHandler
 	@Override
 	public boolean writeCommunityBoardCommand(L2PcInstance activeChar, String arg1, String arg2, String arg3, String arg4, String arg5)
 	{
-		// TODO: Implement.
-		return false;
+		// the only Write bypass that comes to this handler is "Write Notice Set _ Content Content Content";
+		// arg1 = Set, arg2 = _
+		final L2Clan clan = activeChar.getClan();
+		
+		if ((clan != null) && activeChar.isClanLeader())
+		{
+			clan.setNotice(arg3);
+		}
+		
+		return true;
 	}
 }