I am trying to recreate the FactionChat plugin for 1.14 using Skript and Facsk, but when ever I run the command, even if I am in a faction, it says I am not in any faction. I most likely have the wrong method of getting the player's faction.
Here is the part of it that get's their faction and checks if they are in one (I know, I will make it not detect Wilderness, SafeZone, and WarZone factions once I figure out how to get the faction name.)
Here is the part of it that get's their faction and checks if they are in one (I know, I will make it not detect Wilderness, SafeZone, and WarZone factions once I figure out how to get the faction name.)
Code:
command /fc [<text>]:
trigger:
set {%player%.player} to faction player from player
set {%player%.faction} to "<none>"
set {%player%.faction} to faction name of faction player {%player%.name}
if {%player%.faction} is "<none>":
send "&cYou are not a member of any faction" to player
set {%player%.fcmode} to "public"