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 Skelett not centering message problem!

Discussion in 'Skript' started by Adrihun, Apr 27, 2017.

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

    Adrihun Member

    Joined:
    Feb 1, 2017
    Messages:
    368
    Likes Received:
    6
    Okay, So i have an announcement script, and i used the Skelett center feature to make it centered.

    message centered "&c%arg-2%" to all players

    And i have another script which does the same thing but globally announces the message.

    skellettcord message coloured "&c%arg-2%" to all bungeecord players

    How do i make the second Script centered like the first one?
    Both of them use Skelett. Using Skript dev 25, Spigot 1.8.8, Bungeecord 1.11 (Latest)
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Perhaps assign a variable to centered argument 2 and messaging that variable to the entire bungee cord? I don't know if you can assign a variable to a centered text, but it's worth a shot.

    Also sorry I can't be of more help right now, 1 am here and I need to get up early.
     
    Adrihun likes this.
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    How do i do that?
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Use the evaluate effect:
    Code (Skript):
    1. evaluate "message centered ""&c%arg-2%"" to all players" on bungeecord server "ServerName"
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    thank you soo much!
    --- Double Post Merged, Apr 29, 2017, Original Post Date: Apr 29, 2017 ---
    @YoshYz Update
    "on bungeecord server "ServerName""
    How do i make it so it does it on all servers? xD
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    232
    Code (Skript):
    1. loop all bungeecord server:
    2.     evaluate "message centered ""&c%arg-2%"" to all players" on bungeecord server "%loop-value%"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...