Solved i have problem on this prestige script

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Fain

Member
May 19, 2020
19
1
3
23
Code:
command /prestigebook [<player>]:
  permission: prestige.book
  trigger:
    give 1 of written book named "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki" to arg-1
   
on join:
  if {prestige.%player's uuid%} is not set:
    set {prestige.%player's uuid%} to 0
 
on chat:
  send "%player's display name% &7[&f%{prestige.%player's uuid%}%&7] &f: %message%" to player
 
on right click with written book:
  if name of tool of player is "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki":
    send "&a>> You have &e&lPrestiged&a! <<"
    set {_t} to {prestige.%player's uuid%} +1
    send "      &7[&8%{prestige.%player's uuid%}%&7] --> &7[&a%{_t}%&7]"
    add 1 to {prestige.%player's uuid%}
    broadcast "&6&l%player% &4&lhas prestiged!"
    remove held item from player

the players cant see other player prestige on chat and only see self and if I type on chat its duplicate my name one prestige and second one none prestige I want to help me
 
Last edited:
in the on chat event, change "send" to "broadcast", and remove "to player"
so
Code:
on chat:
    broadcast "%player's display name% &7[&f%{prestige.%player's uuid%}%&7] &f: %message%"
 
the other player can see my prestige but its still duplicate my name
it I need more plugin for it ?
 

Attachments

  • same.png
    same.png
    847.2 KB · Views: 208
Code:
command /prestigebook [<player>]:
  permission: prestige.book
  trigger:
    give 1 of written book named "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki" to arg-1
    
on join:
  if {prestige.%player's uuid%} is not set:
    set {prestige.%player's uuid%} to 0
 
on chat:
  broadcast "%player's display name% &7[&f%{prestige.%player's uuid%}%&7] &f: %message%"
 
on right click with written book:
  if name of tool of player is "&7&ki &5&lPrestigious &d&lSkyFlood &7&ki":
    send "&a>> You have &e&lPrestiged&a! <<"
    set {_t} to {prestige.%player's uuid%} +1
    send "      &7[&8%{prestige.%player's uuid%}%&7] --> &7[&a%{_t}%&7]"
    add 1 to {prestige.%player's uuid%}
    broadcast "&6&l%player% &4&lhas prestiged!"
    remove held item from player
 
do you have any other skripts than use the "on chat" event?
 
im very noob on scripting and there it my plugins

Essentials, Essentialschat, Holographic, luckperms, placeholder api, Skript, Skript addon: Ersatz, Skript addon:skQuery,Vault, Worldedit, Worldguard

only this plugins


And no I don't have any script only this
 
There has to be something interfering, because you are only broadcasting the message once.

To be clear, your issue is that the message is end twice, correct?
 
can you create scrip
There has to be something interfering, because you are only broadcasting the message once.

To be clear, your issue is that the message is end twice, correct?
yeah If i type something then type twice than one
[doublepost=1589921659,1589921624][/doublepost]
There has to be something interfering, because you are only broadcasting the message once.

To be clear, your issue is that the message is end twice, correct?
its problem from essentialschat?
 
can you create scrip

yeah If i type something then type twice than one
[doublepost=1589921659,1589921624][/doublepost]
its problem from essentialschat?
No, I don't think it is.

So, if you remove the broadcast entirely, what happens then?
 
okay, so just try and disable the skript, so we can see if there's some other skript also doing a broadcast
 
okay, so just try and disable the skript, so we can see if there's some other skript also doing a broadcast
ok
[doublepost=1589922102,1589922015][/doublepost]
okay, so just try and disable the skript, so we can see if there's some other skript also doing a broadcast
I disable it
[doublepost=1589922134][/doublepost]
okay, so just try and disable the skript, so we can see if there's some other skript also doing a broadcast
this command /skript disable prestige right?
 
ok
[doublepost=1589922102,1589922015][/doublepost]
I disable it
okay, then what happens when you type in the chat?
[doublepost=1589922177][/doublepost]
ok
[doublepost=1589922102,1589922015][/doublepost]
I disable it
[doublepost=1589922134][/doublepost]
this command /skript disable prestige right?
Yes, "/sk disable (skript name)"
 
dude cancel the event
[doublepost=1589922723,1589922688][/doublepost]or set the chat format to what u want
Oh yeah, i completely missed the obvious fact that he is not cancelling the event, and why the message is therefor being sent twice..
How stupid of me xD
 
Oh yeah, i completely missed the obvious fact that he is not cancelling the event, and why the message is therefor being sent twice..
How stupid of me xD
dude cancel the event
[doublepost=1589922723,1589922688][/doublepost]or set the chat format to what u want

Okay How to cancel the event?
[doublepost=1589929304][/doublepost]
dude cancel the event
[doublepost=1589922723,1589922688][/doublepost]or set the chat format to what u want
finally I fix it thank you man :emoji_slight_smile:
[doublepost=1589929337][/doublepost]
Oh yeah, i completely missed the obvious fact that he is not cancelling the event, and why the message is therefor being sent twice..
How stupid of me xD
and thank you for helping me :emoji_slight_smile:
 
Status
Not open for further replies.