Jump to content

Skript error | /clans tag | When setting the suffix, it says "An internal error has occured while attempting to perform this command"


unrespectful

Recommended Posts

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

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

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

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...