Skip to content
Snippets Groups Projects
Commit 1c98615a authored by Zoey76's avatar Zoey76
Browse files

BETA: Minor cleanup for [8866].

parent fe286e1a
No related branches found
No related tags found
No related merge requests found
<html><body>
You must be in Clan.
</body></html>
\ No newline at end of file
...@@ -57,12 +57,11 @@ public class Alliance extends Quest ...@@ -57,12 +57,11 @@ public class Alliance extends Quest
@Override @Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{ {
String htmltext = event;
if (!"9001-01.htm".equals(event) && player.getClan() == null) if (!"9001-01.htm".equals(event) && player.getClan() == null)
{ {
htmltext = "<html><body>You must be in Clan.</body></html>"; return "9001-04.htm";
} }
return htmltext; return event;
} }
public static void main(String[] args) public static void main(String[] args)
......
...@@ -77,15 +77,14 @@ public class Clan extends Quest ...@@ -77,15 +77,14 @@ public class Clan extends Quest
@Override @Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player) public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{ {
String htmltext = event;
if (LEADER_REQUIRED.containsKey(event)) if (LEADER_REQUIRED.containsKey(event))
{ {
if (player.getClan() == null || !player.isClanLeader()) if (!player.isClanLeader())
{ {
htmltext = LEADER_REQUIRED.get(event); return LEADER_REQUIRED.get(event);
} }
} }
return htmltext; return event;
} }
public static void main(String[] args) public static void main(String[] args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment