mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +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
@@ -185,6 +185,10 @@ public class PacketHandlerServer{
|
||||
PlayerData playerData = PlayerDataController.Instance.getPlayerData(player);
|
||||
Party party = PartyController.Instance().getParty(playerData.partyUUID);
|
||||
if (party != null) {
|
||||
if (party.getPartyLeader() != player) {
|
||||
return;
|
||||
}
|
||||
|
||||
String questCategory = Server.readString(buffer);
|
||||
String questName = Server.readString(buffer);
|
||||
party.setQuest(null);
|
||||
|
||||
Reference in new issue
Block a user