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

BungeeCord online players problem

Discussion in 'Skript' started by ImM7mqd, Aug 12, 2019.

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

    ImM7mqd Member

    Joined:
    Jun 4, 2019
    Messages:
    1
    Likes Received:
    0
    so when i put the online player numbers on a specific bungeeserver and no one in the server it says:

    Online: <none>

    can someone help me?

    set online players Code:


    Code (Text):
    1.  
    2. every 1 seconds:
    3.     set {_Pvp} to size of all bungeecord players on server "Pvp"
    Menu Code:

    Code (Text):
    1. on right click holding a compass:
    2.     play sound "Note_pling" to player with volume 100.0 and pitch 5
    3.     open chest with 1 Rows named "&cSelector" for player
    4.     wait 0.5 second
    5.     format slot 0 of player with stone sword named "&e&lPvp" with lore "&a%{_Pvp}%" to close then run [bungeecord connect player to "Pvp"]
    the problem is when nobody is on Pvp server it says <none> so how can i set it to 0?

    Sorry for bad english
    --- Double Post Merged, Aug 12, 2019, Original Post Date: Aug 12, 2019 ---
    and also i put the Skungee, umbaska, skellet plugins and skelletproxy
     
  2. malia

    malia Well-Known Member

    Joined:
    Jul 24, 2019
    Messages:
    304
    Likes Received:
    20
    Code (Text):
    1. if size of all bungeecord players is 0:
    2.     set {_Pvp} to 0
    3. else:
    4.     # stuff
    Make a sanity check
     
  3. KingAdmin_YT

    KingAdmin_YT Member

    Joined:
    May 16, 2018
    Messages:
    23
    Likes Received:
    0
    Replace from {_Pvp} to {pvp}.

    If the data is to be permanent, temporary data should not be used.
    --- Double Post Merged, Aug 15, 2019, Original Post Date: Aug 15, 2019 ---
    Or without having to use the data,

    format slot 0 of player with .... with lore “%size of all bungeecord players on server “”Pvp””%” close ...
     
Thread Status:
Not open for further replies.
Loading...