Jump to content

Expression error


pnguin

Recommended Posts

can you send the skript so we can help?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Just now, BanditEagle said:

can you send the skript so we can help?

on chat:
	if {%player%.rainbowcolor} is true:
		set chat format to "%coloured player's prefix%&8|%coloured player's displayname%&r &7» &f%coloured message%"
	else:
		if player has permission "staff.chat":
			set chat format to "%coloured player's prefix%&8|%coloured player's displayname%&7 » &f%coloured message%"
		else:
			set chat format to "%coloured player's prefix%&8|%coloured player's displayname%&7 » &8%message%"

 

I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
Link to comment
Share on other sites

try this:

on chat:
    set {_playerprefix} to player's prefix
	if {%player%.rainbowcolor} is true:
		set chat format to "%{_playerprefix}%&8|%player's displayname%&r &7» &f%coloured message%"
    else if {%player%.rainbowcolor} is false:
        set chat format to "%{_playerprefix}%&8|%player's displayname%&r &7» &f%message%"
	if player has permission "staff.chat":
		set chat format to "%{_playerprefix}%&8|%coloured player's displayname%&7 » &f%coloured message%"
	else:
		set chat format to "%{_playerprefix}%&8|%coloured player's displayname%&7 » &8%message%"

 

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

15 hours ago, BanditEagle said:

try this:


on chat:
    set {_playerprefix} to player's prefix
	if {%player%.rainbowcolor} is true:
		set chat format to "%{_playerprefix}%&8|%player's displayname%&r &7» &f%coloured message%"
    else if {%player%.rainbowcolor} is false:
        set chat format to "%{_playerprefix}%&8|%player's displayname%&r &7» &f%message%"
	if player has permission "staff.chat":
		set chat format to "%{_playerprefix}%&8|%coloured player's displayname%&7 » &f%coloured message%"
	else:
		set chat format to "%{_playerprefix}%&8|%coloured player's displayname%&7 » &8%message%"

 

Sorry for the late response but it still has errors

2021-04-24_08_42_14.thumb.png.0904bbad0850e2e8fd9953490726e22d.png

I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
Link to comment
Share on other sites

thats with formatting. fix the spacings so it matches your skript and try it again.

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

2 minutes ago, BanditEagle said:

thats with formatting. fix the spacings so it matches your skript and try it again.

It still has the same error with the %player's prefix%

I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
Link to comment
Share on other sites

try this:

on chat:
	set {_playerprefix} to prefix of player's uuid
	if {%player%.rainbowcolor} is true:
		set chat format to "%{_playerprefix}%&8|%player's displayname%% ? % &7» &f%message%"
	else:
		if player has permission "staff.chat":
			set chat format to "%{_playerprefix}%&8|%player's displayname%% ? % &7» &f%message%"

 

Edited by BanditEagle
  • Thanks 1

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

1 minute ago, pizzaschut said:

No errors tysm 😄 

did it work?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

do you have a plugin such as LuckPerms which sets your player prefix?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

1 minute ago, BanditEagle said:

do you have a plugin such as LuckPerms which sets your player prefix?

yes i have luckperms installed

I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
Link to comment
Share on other sites

Just now, pizzaschut said:

yes i have luckperms installed

With luckperms, did you create a group, give yourself that group, and make sure that group has a prefix set up?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

1 minute ago, BanditEagle said:

With luckperms, did you create a group, give yourself that group, and make sure that group has a prefix set up?

yes i have the group owner with a prefix set and i have the owner rank

I used to play Minehut I guess?
Yeah, I still watch the forums for some reason. (15/5/2023)
Link to comment
Share on other sites

do you mind sending {_playerprefix} to yourself and see what it says?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Just now, pizzaschut said:

The exact same

... what does it say?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

on chat:
	set {_playerprefix} to prefix of player's uuid
	send {_playerprefix} to player
	if {%player%.rainbowcolor} is true:
		set chat format to "%{_playerprefix}%&8|%player's displayname%% ? % &7» &f%message%"
	else:
		if player has permission "staff.chat":
			set chat format to "%{_playerprefix}%&8|%player's displayname%% ? % &7» &f%message%"

can you do this and tell me what it sends to you? like just take a screenshot of it and send it

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

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...