mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-04 19:13:19 -04:00
21 lines
551 B
Python
21 lines
551 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
|