mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-26 23:12:55 +00:00
Made setting a quest's party only possible by the party leader.
This commit is contained in:
1 parent
502798573b
commit
2b292d01f5
2 files changed
+6
-1
No files matched your search
@@ -87,7 +87,8 @@ public class GuiQuestLog extends GuiCNPCInventory implements ITopButtonListener,
|
||||
addButton(new GuiButtonNextPage(1, guiLeft + 286, guiTop + 176, true));
|
||||
addButton(new GuiButtonNextPage(2, guiLeft + 144, guiTop + 176, false));
|
||||
|
||||
if (ClientCacheHandler.party != null && data.hasSelectedQuest()) {
|
||||
if (ClientCacheHandler.party != null && data.hasSelectedQuest()
|
||||
&& ClientCacheHandler.party.getPartyLeaderName().equals(this.player.getCommandSenderName())) {
|
||||
String questName = ClientCacheHandler.party.getCurrentQuestName();
|
||||
GuiNpcButton partyButton = new GuiNpcButton(3, guiLeft + 150, guiTop + 151, 50, 20, new String[]{"party.party", "party.partying"}, Objects.equals(questName, data.selectedQuest) ? 1 : 0);
|
||||
if (Objects.equals(questName, data.selectedQuest)) {
|
||||
|
||||
Reference in new issue
Block a user