1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Tags:
  1. LimeGlass
    Supported Minecraft Versions:
    • 1.10, 1.11
    [​IMG]
    FacSk aims to add full control of Factions within Skript.


    I have been asked many many times to add Factions support to Skellett (My other Skript addon) I get atleast one or more message a week asking to add support for it. So I decided to make a new Addon. Here you go enjoy!

    Main:
    • 100% faction player control
    • 100% faction control
    • 90% events
    • 0% faction flag support
    • 5% relationships and rival support
    • 0% faction permission support
    Required:
    • Java 8
    • Factions and MassiveCore
    • Any Spigot version that Factions and MassiveCore support
    Player Syntax:
    Expressions:

    Code (Skript):
    1. [the] faction[s] player [(from|in|of)] (1¦%-player%|2¦[uuid] %-string%)
    2.  
    3. #Changers: set (Faction)
    4. #Info: Setting this is the faction that the player should autoclaim for.
    5. [the] auto[ ]claim [(mode|state)] of faction[s] player %mplayer%
    6. faction[s] player %mplayer%'s auto[ ]claim [(mode|state)]
    7.  
    8. #Last activity is data that Factions uses for clearing out inactive players
    9. #If you set this to anything it will only update the player to the current time so their data won't be deleted for inactivity
    10. [the] last activity [time] of faction[s] player %mplayer%
    11. faction[s] player %mplayer%'s last activity [time]
    12.  
    13. #Changers: set (String)
    14. [the] [faction] ID of faction[s] player %mplayer%
    15. faction[s] player %mplayer%'s [faction] ID
    16.  
    17. #Changers: set (Faction), reset
    18. #Info: resetting this will set their faction to the default faction
    19. [the] faction of faction[s] player %mplayer%
    20. faction[s] player %mplayer%'s faction
    21.  
    22. #Changers: set (Rel), reset
    23. #Info: Rel is the name of roles in Factions
    24. #Info: resetting this will set their role to the default role
    25. [the] faction role of faction[s] player %mplayer%
    26. faction[s] player %mplayer%'s faction role
    27.  
    28. #Changers: set (String)
    29. [the] [faction] title of faction[s] player %mplayer%
    30. faction[s] player %mplayer%'s [faction] title
    31.  
    32. #Changers: set (Number)
    33. [the] [faction] power[ ]boost[er] of faction[s] player %mplayer%
    34. faction[s] player %mplayer%'s [faction] power[ ]boost[er]
    35.  
    36. #Changers: set (Number), reset
    37. #Info: resetting this will set their power to the default power
    38. [the] power of faction[s] player %mplayer%
    39. faction[s] player %mplayer%'s power
    40.  
    41. [the] max[imum] power of faction[s] player %mplayer%
    42. faction[s] player %mplayer%'s max[imum] power
    43.  
    44. [the] max[imum] universal power of faction[s] player %mplayer%
    45. faction[s] player %mplayer%'s max[imum] universal power
    46.  
    47. [the] power per hour [rate] of faction[s] player %mplayer%
    48. faction[s] player %mplayer%'s power per hour [rate]
    49.  
    50. [the] power (per|loss on) death [rate] of faction[s] player %mplayer%
    51. faction[s] player %mplayer%'s power (per|loss on) death [rate]
    52.  
    53. #Changers: set (Boolean)
    54. [the] map [auto] [update] [(mode|state)] of faction[s] player %mplayer%
    55. faction[s] player %mplayer%'s map [auto] [update] [(mode|state)]
    56.  
    57. #Changers: set (Boolean)
    58. [the] overriding [(mode|state)] of faction[s] player %mplayer%
    59. faction[s] player %mplayer%'s overriding [(mode|state)]
    60.  
    61. #Changers: set (Boolean)
    62. #Info: This is a toggle for players to view the title of a faction when they enter a faction claim
    63. [the] territory [info] title[s] [(mode|state|toggle)] of faction[s] player %mplayer%
    64. faction[s] player %mplayer%'s territory [info] title[s] [(mode|state|toggle)]
    65.  
    66. [the] faction name of faction[s] player %mplayer%
    67. faction[s] player %mplayer%'s faction name
    68.  
    69. [the] name and title of faction[s] player %mplayer% [and] [with] (data [of]|from|and|compared to) faction %faction%
    70.  
    71. [the] name and title of faction[s] player %mplayer% [and] [with] (data [of]|from|and|compared to) player %mplayer%
    72.  
    73. #Info: This is loopable
    74. [(the|all)] [of] [the] faction[s] players
    75.  
    76. #Info: This returns just the normal name of the player (E.g: LimeGlass)
    77. [the] name of faction[s] player %mplayer%
    78. faction[s] player %mplayer%'s name
    79.  
    80. #Grabs the player from MPlayer
    81. [the] player of faction[s] player %mplayer%
    82. faction[s] player %mplayer%'s player

    Effects:

    Code (Skript):
    1. load [the] faction[s] (data|info) of %mplayer%
    2. load %mplayer%'s faction[s] (data|info)
    3.  
    4. (reset|clear) [the] faction[s] (data|info) of %mplayer%
    5. (reset|clear) %mplayer%'s faction[s] (data|info)
    6.  
    7. (force|make) [the] faction[s] player %mplayer% leave [their] [faction]
    8.  
    9. (force|make) [the] faction[s] player %mplayer% [to] [try (and|to)] claim %locations% [for [faction] %-faction%]

    Conditions:

    Code (Skript):
    1. [the] faction[s] player %mplayer% (1¦is|2¦is(n't| not)) [a] (default|noob|new|fresh off the boat) [player]
    2.  
    3. [the] faction[s] player %mplayer% (1¦[does] ha(s|ve)|2¦do[es](n't| not) have) [a] faction
    4.  
    5. [the] faction[s] player %mplayer% (1¦[does] ha(s|ve)|2¦do[es](n't| not) have) [a] [faction] title
    6.  
    7. [the] faction[s] player %mplayer% (1¦[does] ha(s|ve)|2¦do[es](n't| not) have) [a] [faction] power[ ]boost[er]
    8.  
    9. [the] faction[s] player %mplayer% (1¦is|2¦is(n't| not)) in [their] own (territory|land|claim)
    10.  
    11. [the] faction[s] player %mplayer% (1¦is|2¦is(n't| not)) in enemy (territory|land|claim)

    Faction Syntax:
    Expressions:

    Code (Skript):
    1. [the] faction at [location] %location%
    2.  
    3. #Info: Grabs a faction either by name or id
    4. [the] faction from [faction] (string|id|name) %string%
    5.  
    6. #Info: This is loopable
    7. [(the|all)] [of] [the] factions
    8.  
    9. #Changers: set (String)
    10. [the] name of faction %faction%
    11.  
    12. #Changers: set (String)
    13. [the] description of faction %faction%
    14. faction %faction%'s description
    15.  
    16. #Changers: set (String)
    17. [the] motd of faction %faction%
    18. faction %faction%'s motd
    19.  
    20. #Info: This is loopable
    21. [(the|all)] [of] [the] motd messages (of|from) faction %faction%
    22. [(the|all)] [of] [the] faction %faction%'s motd messages
    23.  
    24. #Changers: set (Timeperiod)
    25. [the] time creat(e[d]|ion) of faction %faction%
    26. [the] time faction %faction% was created
    27.  
    28. #Changers: set (Location)
    29. [the] home [location] of faction %faction%
    30. faction %faction%'s home [location]
    31.  
    32. #Changers: set (Number)
    33. [the] power[ ]boost[er] of faction %faction%
    34. faction %faction%'s power[ ]boost[er]
    35.  
    36. [the] power of faction %faction%
    37. faction %faction%'s power
    38.  
    39. [the] max[imum] power of faction %faction%
    40. faction %faction%'s max[imum] power
    41.  
    42. [the] [amount of] land [(count|size)] [(of|from)] faction %faction% [has] [in [world] %-string%]
    43. faction %faction%'s land [(count|size)] [in [world] %-string%]
    44.  
    45. #Info: This is loopable
    46. [(the|all)] [of] [the] (claimed worlds|worlds [claimed]) [(of|by)] faction %faction% [has claims in]
    47. faction %faction%'s claimed worlds
    48.  
    49. #Info: This is loopable
    50. [(the|all)] [of] [the] players (in|of) faction %faction%
    51. faction %faction%'s players
    52.  
    53. #Info: This is loopable
    54. [(the|all)] [of] [the] (1¦online|2¦offline) players (in|of) faction %faction%
    55. faction %faction%'s (1¦online|2¦offline) players
    56.  
    57. #Info: This is loopable
    58. [(the|all)] [of] [the] players with role %factionrel% (in|of) faction %faction%
    59. faction %faction%'s players with role %factionrel%
    60.  
    61. [the] leader of faction %faction%
    62. faction %faction%'s leader
    63.  
    64. [get] [the] war[ ]zone faction
    65.  
    66. [get] [the] (wilderness|none) faction
    67.  
    68. [get] [the] safe[ ]zone faction

    Effects:

    Code (Skript):
    1. load [the] faction[s] (data|info) of faction %faction%
    2. load faction %faction%'s faction[s] (data|info)
    3.  
    4. #Info: This removes the current leader of a faction and replaces them with the next best replacement
    5. promote [a] [new] leader in faction %faction%
    6. promote %faction%'s faction leader
    7.  
    8. (send|message) %strings% [to] faction %faction%

    Conditions:

    Code (Skript):
    1. [the] faction %faction% (1¦[does] ha(s|ve)|2¦do[es](n't| not) have) [a] description
    2.  
    3. [the] faction %faction% (1¦[does] ha(s|ve)|2¦do[es](n't| not) have) [a[n]] motd
    4.  
    5. [the] faction %faction% (1¦[does] ha(s|ve)|2¦do[es](n't| not) have) [a] home [location]
    6.  
    7. [the] home at [location] %location% (1¦is|2¦is(n't| not)) valid for faction %faction%
    8. [the] [location] %location% (1¦is|2¦is(n't| not)) [a] valid home [location] for faction %faction%
    9.  
    10. #Info: This checks if a faction has more land and than power (Meaning they could easily have land claimed)
    11. [the] faction %faction% (1¦[does] ha(s|ve)|2¦do[es](n't| not) have) [a] land inflation
    12.  
    13. #Info: Tests if all the faction players are online or offline
    14. [the] faction %faction% players are [all] (1¦offline|2¦online)
    15.  
    16. [are] any faction %faction% players online
    17.  
    18. [are] explosions (1¦(disabled|not allowed)|2¦(enabled|allowed)) in faction %faction%

    Events:

    Code (Skript):
    1.  [on] [facsk] faction[s] create:
    2.  
    3.        #Returns the faction
    4.        event-faction
    5.  
    6.    [on] [facsk] faction[s] desc[ription] (change|edit):
    7.  
    8.        #Returns the faction
    9.        event-faction
    10.  
    11.        #Returns the new description
    12.        event-string
    13.  
    14.    [on] [facsk] faction[s] disband:
    15.  
    16.        #Returns the faction
    17.        event-faction
    18.  
    19.    [on] [facsk] faction[s] home (change|edit):
    20.  
    21.        #Returns the faction
    22.        event-faction
    23.  
    24.        #Returns the location of the new home
    25.        event-location
    26.  
    27.    [on] [facsk] faction[s] invite:
    28.  
    29.        #Returns the faction
    30.        event-faction
    31.  
    32.        #Returns the mplayer
    33.        event-mplayer
    34.  
    35.    [on] [facsk] faction[s] motd (change|edit):
    36.  
    37.        #Returns the faction
    38.        event-faction
    39.  
    40.        #Returns the new motd
    41.        event-string
    42.  
    43.    [on] [facsk] faction[s] name (change|edit):
    44.  
    45.        #Returns the faction
    46.        event-faction
    47.  
    48.        #Returns the new name
    49.        event-string
    50.  
    51.    [on] [facsk] faction[s] (role|rank) (change|edit):
    52.  
    53.        #Returns the mplayer
    54.        event-mplayer
    55.  
    56.        #Returns the event rank change
    57.        [the] event(-| )(rel|role|rank)
    58.  
    59.    [on] [facsk] faction[s] relation[s] (change|edit):
    60.  
    61.        #Returns the faction
    62.        event-faction
    63.  
    64.        #Returns the faction
    65.        [the] other [event(-| )]faction
    66.  
    67.        #Returns the event rel change
    68.        [the] event(-| )(rel|role|rank)
    69.  
    70.    [on] [facsk] faction[s] title (change|edit):
    71.  
    72.        #Returns the mplayer
    73.        event-mplayer
    74.  
    75.        #Returns the new title
    76.        event-string
    77.  
    Types:

    mplayer

    faction

    factionrel

    Factionrel enum types:

    ENEMY(
    "an enemy", "enemies", "an enemy faction", "enemy factions",
    "Enemy"
    ),
    NEUTRAL(
    "someone neutral to you", "those neutral to you", "a neutral faction", "neutral factions",
    "Neutral"
    ),
    TRUCE(
    "someone in truce with you", "those in truce with you", "a faction in truce", "factions in truce",
    "Truce"
    ),
    ALLY(
    "an ally", "allies", "an allied faction", "allied factions",
    "Ally"
    ),
    RECRUIT(
    "a recruit in your faction", "recruits in your faction", "", "",
    "Recruit"
    ),
    MEMBER(
    "a member in your faction", "members in your faction", "your faction", "your factions",
    "Member"
    ),
    OFFICER(
    "an officer in your faction", "officers in your faction", "", "",
    "Officer", "Moderator"
    ),
    LEADER(
    "your faction leader", "your faction leader", "", "",
    "Leader", "Admin", "Owner"
    );

    Example script
    Code (Skript):
    1. command /test:
    2.    trigger:
    3.        set {_p} to faction player from player
    4.        message "Autoclaim state: %auto claim state of faction player {_p}%"
    5.        message "Last activity: %last activity time of faction player {_p}%"
    6.        make faction player {_p} claim player's location

    Hope you enjoy this Factions hook in Skript! Leave a 5 star review to show your support :emoji_grinning:
    Farid and Orangejuiceyummy like this.

Recent Reviews

  1. FlaxyDK
    FlaxyDK
    1/5,
    Version: 1.0.1
    I got this problem with my script that it just says <none> on the scoreboard and i dont know how to fix...

    on join:
    set {_player} to faction player from player
    set {_faction} to faction of faction player {_player}
    set {_faction-name} to name of faction {_faction}
    set {_faction-power} to power of faction {_player}

    every 10 ticks:
    loop all players:
    wipe loop-player's sidebar
    set name of sidebar of loop-player to "&8-=- &f&lMine&3&lValley &8-=-"
    set score "&8&m -----------------" in sidebar of loop-player to 11
    set score "&3Spiller&8 » &f%loop-player%" in sidebar of loop-player to 10
    set score "&3Penge&8 » &f%loop-player's balance%" in sidebar of loop-player to 9
    set score "&3Online&8 » &f%{players.online}%" in sidebar of loop-player to 8
    set score "&3Online Staff&8 » &f%size of {Online.Staff::*}%" in sidebar of loop-player to 7
    set score "&8 &m---&8=&m---&8 " in sidebar of loop-player to 6
    set score "&3Faction &8» &f%{_faction-name}%" in sidebar of loop-player to 5
    set score "&3Power &8» &f%{_faction-power}%&3/&f%{_facpm}%" in sidebar of loop-player to 4
    set score "&3Kills &8» &f%{kills.%uuid of loop-player%}%" in sidebar of loop-player to 3
    set score "&3Døde &8» &f%{death.%uuid of loop-player%}%" in sidebar of loop-player to 2
    set score " &8&m-----------------" in sidebar of loop-player to 1
  2. SoloGamingYT
    SoloGamingYT
    5/5,
    Version: 1.0.1
    Can you make one for FactionsUUID aswell? because i don't use Mcore anymore..
    1. LimeGlass
      Author's Response
      When I get around to recoding Facsk I will.
  3. Soufreur78
    Soufreur78
    5/5,
    Version: 1.0.1
    Awesome ! I found i little bug. When i get the leader of a faction after loop all factions (set {_chef} to leader of faction loop-value). I don't get the name of the leader of the faction. I get the "Mpplayer" of the leader with lastactivitymillis, factionid, role and power.

    Can you fix it ? Thank. (I'm french)
  4. EWS
    EWS
    5/5,
    Version: 1.0.1
    Like dan330 said down there, add support for LegacyFactions. It's way better, can be translated, less laggy, etc. Thanks!
  5. dan330
    dan330
    5/5,
    Version: 1.0.1
    Good plugin but could you add support for LegacyFactions it is a really growing up Factions UUID rework!
  6. DonaldTrump
    DonaldTrump
    4/5,
    Version: 1.0.1
    Good but does not support 1.7.10
    [05:11:42 INFO]: [Facsk] Enabling Facsk v1.0.1
    [05:11:42 ERROR]: Error occurred while enabling Facsk v1.0.1 (Is it up to date?)
    java.lang.NoSuchMethodError: com.gmail.thelimeglass.Utils.PropertyType.value()Ljava/lang/String;
    at com.gmail.thelimeglass.Facsk.register(Facsk.java:158) ~[?:?]
    at com.gmail.thelimeglass.Facsk.onEnable(Facsk.java:76) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:412) [spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot1710.jar:git-Spigot-1.7.9-R0.2-208-ge0f2e95]
    1. LimeGlass
      Author's Response
      What java version are you using? String is not a thing?

      This is not the correct location to post bug reports. PM me.
  7. RookTDM
    RookTDM
    4/5,
    Version: 1.0.1
    It is an good plugin, but please add 1.8.8 support! Lots of people still use 1.8.8!!!!
  8. Benno812
    Benno812
    4/5,
    Version: 1.0.1
    Finally i found an addon for Factions! Are you planning to insert the documentation in skUnity?
    1. LimeGlass
      Author's Response
      Can't unless I get permission from an Admin which I asked multiple times for.
  9. Getreidemonster
    Getreidemonster
    5/5,
    Version: 1.0.1
    Seems to be awesome, although I made my own land claim script xD - not sure whether Factions = Land Claim...

    Maybe is it for other people helpful.
    Great work Lime! :)