mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-08-05 06:18:00 -04:00
21 lines
549 B
Python
21 lines
549 B
Python
from intents.chat import ChatBroadcastIntent
|
|
from resources.encodables import ProsePackage
|
|
import sys
|
|
|
|
def execute(galacticManager, player, target, args):
|
|
ghost = player.getPlayerObject()
|
|
|
|
if ghost is None:
|
|
return
|
|
|
|
name = str(args.split(" ")[0])
|
|
name.lower()
|
|
|
|
if ghost.getFriendsList().contains(name) is False:
|
|
ChatBroadcastIntent(player, ProsePackage("@cmnty:friend_not_found", "TT", name)).broadcast()
|
|
return
|
|
|
|
ghost.removeFriend(name)
|
|
ChatBroadcastIntent(player, ProsePackage("@cmnty:friend_removed", "TT", name)).broadcast()
|
|
return
|