Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # =============================================================================
- # SKRIPT FOR MAKING CLANS
- # BY MINIOOF
- # DISCORD: minioof#2180
- # REQUIREMENTS: SKRIPT, LUCKPERMS
- # COPYRIGHT © 2020
- # =============================================================================
- options:
- prefix: &8[&bClans&8]
- command /clans [<text>] [<text>]:
- permission message: &fUnknown command. Type "/help" for help.
- permission: clans.help
- trigger:
- if arg-1 is "create":
- if player has permission "clans.create":
- if arg-2 is set:
- if {clans.name.%arg-2%} isn't set:
- execute console command "lp user %player% meta setsuffix 100 "" &8[&b%arg-2%&8]&r"" "
- send "{@prefix} &bYou have successfully create clan named &8[&b%arg-2%&8]"
- set {clans.name.%arg-2%} to "claimed"
- set {%player%.clan} to "%arg-2%"
- if {clans.name.%arg-2%} is "claimed":
- send "{@prefix} &cClan name is already taken!"
- if arg-2 is not set:
- send "{@prefix} &cPlease define an valid clan name!"
- else:
- send "&fUnknown command. Type ""/help"" for help."
- if arg-1 is "delete":
- if arg-2 is "{%player%.clan}":
- execute console command "lp user %player% meta removesuffix"
- else:
- send "{@prefix} &cYou can only leave your own clan!"
- if arg-1 is "invite":
- if arg-2 is set:
- if {%arg-2%.clan} isn't set:
- set {%arg-2%.clan.invite} to "%{%player%.clan}%"
- send "{@prefix} &aSuccessfully invited &a%arg-2% &ato your clan!"
- send "{@prefix} &bYou have been invited to join &b%{%player%.clan}%&b clan!" to arg-2
- send "{@prefix} &bType &a/clans join %{%player%.clan}% &bto accept the request!" to arg-2
- if {%arg-2%.clan} is set:
- send "{@prefix} &cPlayer is already in a clan!"
- if arg-2 isn't set:
- send "{@prefix} &cPlease define a player!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement