unrespectful Posted August 14, 2020 Share Posted August 14, 2020 So I recently made a /clans tag skript, and it always says that an internal error has occured. Please help! Skript: if arg-2 is set: set suffix of {clan::%player's uuid%} to " &a[%arg-2%&a]" send "&aClan tag set to %arg-2%&a." Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 14, 2020 Share Posted August 14, 2020 Do you have Vault and a chat plugin? Because in the docs, it says "The prefix or suffix as defined in the server's chat plugin."https://skripthub.net/docs/?id=2062 Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
unrespectful Posted August 14, 2020 Author Share Posted August 14, 2020 I have Vault, EssentialsChat, and LuckPerms. Will that cause an error? I can remove vault. Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 14, 2020 Share Posted August 14, 2020 Just now, unrespectful said: I have Vault, EssentialsChat, and LuckPerms. Will that cause an error? I can remove vault. No keep Vault. That is needed. Maybe check your server logs after it gives you the internal error to see maybe why it gave you it. Also whats stored inside {clan::%player's uuid%}? Is it a player? Because the syntax is set suffix of player to "something" so make sure it is a player inside that variable. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 | 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - now Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
unrespectful Posted August 14, 2020 Author Share Posted August 14, 2020 It has the player's clan stored inside it. It's supposed to give it to all clan members. Link to comment Share on other sites More sharing options...
unrespectful Posted August 14, 2020 Author Share Posted August 14, 2020 7 minutes ago, _Tarna_ said: No keep Vault. That is needed. Maybe check your server logs after it gives you the internal error to see maybe why it gave you it. Also whats stored inside {clan::%player's uuid%}? Is it a player? Because the syntax is set suffix of player to "something" so make sure it is a player inside that variable. So I rewrote the skript to support the players, but it still showed the error. if arg-1 is "create": if arg-2 is set: if {clan::%player's uuid%} is not set: set {_1} to length of arg-2 if {_1} is less than 15: set {clan} to arg-2 send "&aClan created: %arg-2%" broadcast "&a&l%player% &a&lcreated the clan %arg-2%&a&l!" set {clan::%player's uuid%} to arg-2 add player to {clanplayers::%{clan::%player's uuid%}%} else: send "&cEither A: You already have a clan, or B: You didn't type a name" to player if arg-1 is "tag": set suffix of {clanplayers::%{clan::%player's uuid%}%} to " &a[%arg-2%&a]" send "&aClan tag set to %arg-2%&a." Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now