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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Prefixes in messages

Discussion in 'Skript' started by kittkarrkitt, Jan 10, 2021.

Thread Status:
Not open for further replies.
  1. kittkarrkitt

    Supporter

    Joined:
    Jan 4, 2021
    Messages:
    33
    Likes Received:
    0
    Hi, I need to know how to add Groupmanager prefixes to my custom death messages. Maybe also suffixes and Join and Quit messages? I want it like this:

    upload_2021-1-10_1-7-46.png


    Code (Text):
    1.  
    2. on death:
    3.     victim is a player
    4.     attacker is a player
    5.     set the death message to "&f%victim%&8 has been killed by &f%attacker%&8!"


     

    Attached Files:

  2. Best Answer:
    Post #11 by FireRoz, Jan 20, 2021
  3. RunaYoutube

    RunaYoutube Member

    Joined:
    Nov 10, 2019
    Messages:
    34
    Likes Received:
    1
    why groupmanager? groupmanager sucks. anyhows %player's prefix%
     
  4. kittkarrkitt

    Supporter

    Joined:
    Jan 4, 2021
    Messages:
    33
    Likes Received:
    0
    Hi, sorry for the late reply.

    I have no idea how you want me to implement this exacly. After a while of screwing about and trying to put it everywhere, I cannot find a working solution. To be clear what I want, I want a death message that both displayes the "victims" and "attackers" name and their prefix (from groupmanager) infront.

    For Example: [Game Developer] Notch has been killed by [Youtuber] CaptainSparklez
    Exampe: %player's prefix% &player& has been killed by %player's prefix% %player% ( <--- This does not work). upload_2021-1-15_1-40-48.png

    My code is still the same:

    Code (Text):
    1. on death:
    2.     victim is a player
    3.     attacker is a player
    4.     set the death message to "&f%victim%&8 was killed by &f%attacker%&8!"
    A lot of thanks for your help by the way! I need it : -P

    Ps. I use Groupmanager becouse I have the most experience with it, and it does what I want a group managing plugin to do. It gives me a prefix without much work, and its really clear for me how to edit the files of it.
     
  5. RunaYoutube

    RunaYoutube Member

    Joined:
    Nov 10, 2019
    Messages:
    34
    Likes Received:
    1
    %victim's prefix% is for the victims prefix
     
  6. kittkarrkitt

    Supporter

    Joined:
    Jan 4, 2021
    Messages:
    33
    Likes Received:
    0
    I had tried that already, but thats was not what I meant. I dont know Where to put in in my code

    Code (Text):
    1. on death:
    2.     victim is a player
    3.     attacker is a player
    4.     set the death message to "%victim's prefix% &f%victim%&8 was killed by &f%attacker%&8!"
    Doesn't work ^^
     
  7. wCrazy_

    wCrazy_ Member

    Joined:
    Jan 7, 2021
    Messages:
    15
    Likes Received:
    0
    Use Vault. :emoji_slight_smile:

    Code (Text):
    1. on death:
    2.     victim is a player
    3.     attacker is a player
    4.     set the death message to "%colored {_p}'s prefix%%victim% was killed by %colored {_p}'s prefix%%attacker%"
    %colored {_p}'s prefix%%{_p}%
     
  8. kittkarrkitt

    Supporter

    Joined:
    Jan 4, 2021
    Messages:
    33
    Likes Received:
    0
    I used your code, and I have Vault installed (Otherwise chat prefixes would not work, and they do) but it doesn't work. It does not understand the expression.

    upload_2021-1-16_17-55-42.png


    Code (Text):
    1. on death:
    2.     victim is a player
    3.     attacker is a player
    4.     set the death message to "%colored {_p}'s prefix%%victim% was killed by %colored {_p}'s prefix%%attacker%"
     
  9. wCrazy_

    wCrazy_ Member

    Joined:
    Jan 7, 2021
    Messages:
    15
    Likes Received:
    0
    Use this.

    Code (Text):
    1. on death:
    2.     victim is a player
    3.     attacker is a player
    4.     set the death message to "%colored victim's prefix%%victim% was killed by %colored attacker's prefix%%attacker%"
     
  10. kittkarrkitt

    Supporter

    Joined:
    Jan 4, 2021
    Messages:
    33
    Likes Received:
    0
    upload_2021-1-16_18-9-50.png


    Code (Text):
    1. on death:
    2.     victim is a player
    3.     attacker is a player
    4.     set the death message to "%colored victim's prefix%%victim% was killed by %colored attacker's prefix%%attacker%"
    --- Double Post Merged, Jan 16, 2021, Original Post Date: Jan 16, 2021 ---
    upload_2021-1-16_18-11-35.png
     
  11. RunaYoutube

    RunaYoutube Member

    Joined:
    Nov 10, 2019
    Messages:
    34
    Likes Received:
    1
    %colored victim's prefix% does nothing new lol. might aswell keep it as %victim's prefix%
     
  12. FireRoz

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    5
    You can either use
    Code (Text):
    1. broadcast coloured "%victim's prefix%%victim% &fgot rekt by %attacker's prefix%%attacker%&f."
    or you can simply do
    Code (Text):
    1. broadcast "%victim's display name%&f got rekt by %attacker's display name%&f."
     
  13. kittkarrkitt

    Supporter

    Joined:
    Jan 4, 2021
    Messages:
    33
    Likes Received:
    0
    Thank you very much! It has worked.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...