mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00
19 lines
318 B
Lua
19 lines
318 B
Lua
![]() |
--[[
|
||
|
|
||
|
PartyBreakupCommand Script
|
||
|
|
||
|
Handles disbanding the party.
|
||
|
|
||
|
--]]
|
||
|
|
||
|
function onEventStarted(player, actor, triggerName)
|
||
|
worldMaster = GetWorldMaster();
|
||
|
|
||
|
if (player:IsPartyLeader()) then
|
||
|
player:PartyDisband(name)
|
||
|
else
|
||
|
player:SendGameMessage(player, worldMaster, 30540, 0x20);
|
||
|
end
|
||
|
|
||
|
player:EndEvent();
|
||
|
end
|