Skript Version: Skript 2.2
Skript Author: TullyMastully
Minecraft Version: 1.8
---
Full Code:
Errors on Reload:
No errors.
Other Useful Info: Yes, I have /setrank command, When I change my rank it changes my prefix in chat, using the chat event. When I do /nick I also use the chat event.
My problem is, When I type something in chat, it shows both my real IGN, and the nicked username at the same time.
Addons using (including versions):
ADDONS HERE
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
Skript Author: TullyMastully
Minecraft Version: 1.8
---
Full Code:
code_language.skript:
command /nick [<text>]:
permission: tullycore.nick
permission message: &a&lTULLYCORE &cYou can't execute this command, You need to be the VIP rank or higher!
trigger:
if arg is not set:
send "&cIncorrect usage, Try /nick (Username)"
if arg 1 is set:
if {tullycore.nickname.%player%} is not set:
set player tab name to "&9%arg-1%"
set {tullycore.rank.scoreboard.%arg 1%} to "&cNICKED"
set {tullycore.nickname.%player%} to "%arg 1%"
set player's display name to "%arg 1%"
set player's tablist name to "%arg 1%"
set {vanish.%player%} to true
send "{@secprefix} &aYou are now nicked as %arg 1%!" to player
stop
#Nickname Chat event
on chat:
cancel event
broadcast "&9%{tullycore.nickname.%player%}% &8» &f%message%"
#Setrank Chat Event
on chat:
cancel event
broadcast "%{tullycore.rank.%player%}%%player% &8» &f%message%"
#Make sure you read the "Other Useful Info" section that I detail my problem there.
Errors on Reload:
code_language.skript:
ERROR HERE
No errors.
code_language.skript:
ERROR HERE
Other Useful Info: Yes, I have /setrank command, When I change my rank it changes my prefix in chat, using the chat event. When I do /nick I also use the chat event.
My problem is, When I type something in chat, it shows both my real IGN, and the nicked username at the same time.
Addons using (including versions):
ADDONS HERE
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes