Skocz do zawartości
  • 0

Bungeecord - GUI


gitara17

Pytanie

Otóż mam taki skrypt:

on right click with compass:
    execute player command "menu"
    
aliases:
    cos = 160
    
command /menu:
    trigger:
        open chest with 3 rows named "&7> &cMenu serwerow" to the player
        wait 1 tick
        format slot 0 of player with 1 of cos named "&8" to close
        format slot 1 of player with 1 of cos named "&8" to close
        format slot 2 of player with 1 of cos named "&8" to close
        format slot 3 of player with 1 of cos named "&8" to close
        format slot 4 of player with 1 of cos named "&8" to close
        format slot 5 of player with 1 of cos named "&8" to close
        format slot 6 of player with 1 of cos named "&8" to close
        format slot 7 of player with 1 of cos named "&8" to close
        format slot 8 of player with 1 of cos named "&8" to close
        format slot 9 of player with 1 of cos named "&8" to close
        format slot 10 of player with 1 of cos named "&8" to close
        format slot 11 of player with 1 of cos named "&8" to close
        format slot 12 of player with 1 of diamond sword named "&7> &c&lPvP" with lore "&a&lDOSTEPNOSC ⇒ &2Online&8/&4&mOffline||&8||&a⇉ &eKliknij by dolaczyc" to close then run [execute player command "pvp"]
        format slot 13 of player with 1 of grass block named "&7> &a&lSky&b&lBlock" with lore "&a&lDOSTEPNOSC ⇒ &2Online&8/&4&mOffline||&8||&a⇉ &eKliknij by dolaczyc" to close then run [execute player command "skyblock"]
        format slot 14 of player with 1 of quartz block named "&7> &6&l&oCreative" with lore "&a&lDOSTEPNOSC ⇒ &2Online&8/&4&mOffline||&8||&a⇉ &eKliknij by dolaczyc" to close then run [execute player command "creative"]
        format slot 15 of player with 1 of cos named "&8" to close
        format slot 16 of player with 1 of cos named "&8" to close
        format slot 17 of player with 1 of cos named "&8" to close
        format slot 18 of player with 1 of cos named "&8" to close
        format slot 19 of player with 1 of cos named "&8" to close
        format slot 20 of player with 1 of cos named "&8" to close
        format slot 21 of player with 1 of cos named "&8" to close
        format slot 22 of player with 1 of cos named "&8" to close
        format slot 23 of player with 1 of cos named "&8" to close
        format slot 24 of player with 1 of cos named "&8" to close
        format slot 25 of player with 1 of cos named "&8" to close
        format slot 26 of player with 1 of cos named "&8" to close
        
command /pvp:
    trigger:
        bungeecord connect player to "pvp"
        
command /skyblock:
    trigger:
        bungeecord connect player to "skyblock"
        
command /creative:
    trigger:
        bungeecord connect player to "creative"

No i po pierwsze: Chciałbym, aby te "DOSTEPNOSC: Online/Offline" były prawdziwe (jak serwer włączony to to sie przekresla "offline", a jak wylaczony to przekreslone "online"). A po drugie: Jeszcze chciałbym, aby była podana ilosc graczy na każdym serwerze. I mam jeszcze pytanie: Jak zrobić, żeby na takim scoreboardzie (po prawej stronie ekranu) była nazwa mojego serwera "&6&lBlock&b&lCraft" oraz żeby pod tą nazwą był każdy serwer i ilosc graczy (serwery: PvP, Creative, SkyBlock).

 

Potrzebne na zaraz!

Odnośnik do komentarza
https://skript.pl/temat/17038-bungeecord-gui/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
1 godzinę temu, gitara17 napisał:

Otóż mam taki skrypt:


on right click with compass:
    execute player command "menu"
    
aliases:
    cos = 160
    
command /menu:
    trigger:
        open chest with 3 rows named "&7> &cMenu serwerow" to the player
        wait 1 tick
        format slot 0 of player with 1 of cos named "&8" to close
        format slot 1 of player with 1 of cos named "&8" to close
        format slot 2 of player with 1 of cos named "&8" to close
        format slot 3 of player with 1 of cos named "&8" to close
        format slot 4 of player with 1 of cos named "&8" to close
        format slot 5 of player with 1 of cos named "&8" to close
        format slot 6 of player with 1 of cos named "&8" to close
        format slot 7 of player with 1 of cos named "&8" to close
        format slot 8 of player with 1 of cos named "&8" to close
        format slot 9 of player with 1 of cos named "&8" to close
        format slot 10 of player with 1 of cos named "&8" to close
        format slot 11 of player with 1 of cos named "&8" to close
        format slot 12 of player with 1 of diamond sword named "&7> &c&lPvP" with lore "&a&lDOSTEPNOSC ⇒ &2Online&8/&4&mOffline||&8||&a⇉ &eKliknij by dolaczyc" to close then run [execute player command "pvp"]
        format slot 13 of player with 1 of grass block named "&7> &a&lSky&b&lBlock" with lore "&a&lDOSTEPNOSC ⇒ &2Online&8/&4&mOffline||&8||&a⇉ &eKliknij by dolaczyc" to close then run [execute player command "skyblock"]
        format slot 14 of player with 1 of quartz block named "&7> &6&l&oCreative" with lore "&a&lDOSTEPNOSC ⇒ &2Online&8/&4&mOffline||&8||&a⇉ &eKliknij by dolaczyc" to close then run [execute player command "creative"]
        format slot 15 of player with 1 of cos named "&8" to close
        format slot 16 of player with 1 of cos named "&8" to close
        format slot 17 of player with 1 of cos named "&8" to close
        format slot 18 of player with 1 of cos named "&8" to close
        format slot 19 of player with 1 of cos named "&8" to close
        format slot 20 of player with 1 of cos named "&8" to close
        format slot 21 of player with 1 of cos named "&8" to close
        format slot 22 of player with 1 of cos named "&8" to close
        format slot 23 of player with 1 of cos named "&8" to close
        format slot 24 of player with 1 of cos named "&8" to close
        format slot 25 of player with 1 of cos named "&8" to close
        format slot 26 of player with 1 of cos named "&8" to close
        
command /pvp:
    trigger:
        bungeecord connect player to "pvp"
        
command /skyblock:
    trigger:
        bungeecord connect player to "skyblock"
        
command /creative:
    trigger:
        bungeecord connect player to "creative"

No i po pierwsze: Chciałbym, aby te "DOSTEPNOSC: Online/Offline" były prawdziwe (jak serwer włączony to to sie przekresla "offline", a jak wylaczony to przekreslone "online"). A po drugie: Jeszcze chciałbym, aby była podana ilosc graczy na każdym serwerze. I mam jeszcze pytanie: Jak zrobić, żeby na takim scoreboardzie (po prawej stronie ekranu) była nazwa mojego serwera "&6&lBlock&b&lCraft" oraz żeby pod tą nazwą był każdy serwer i ilosc graczy (serwery: PvP, Creative, SkyBlock).

 

Potrzebne na zaraz!

Nie można tego zrobić.

Ewentualnie można tak:

command /serwer [<text>] [<text>]:
	trigger:
  	permission: bunge.*
  	permission message: &cNie masz uprawnien!
		if arg 1 "pvp" or "easyhc" or "creativ":
    		if arg 2 is "wlacz" or "wylacz":
        		set {%arg 1%} to arg 2
                send "&7Status areny &8%arg 1%&7: &2%arg 2%ono&7!"
       	 	else:
        		send "&cDostepne argumenty: &8wlacz, wylacz"
        else:
			send "&cDostepne argumenty: &8pvp, easyhc, creativ"
    
command /menu:
    trigger:
        open chest with 3 rows named "&7> &cMenu serwerow" to the player
        wait 1 tick
        if {pvp} is "wlacz":
       		format slot 12 of player with 1 of diamond sword named "&7> &c&lPvP" with lore "&a&lDOSTEPNOSC ⇒ &2tak||&8||&a⇉ &eKliknij by dolaczyc" to close then run [execute player command "pvp"]
        else:
        	format slot 12 of player with 1 of diamond sword named "&7> &c&lPvP" with lore "&a&lDOSTEPNOSC ⇒ &2nie" to close

I na wzor.

Odnośnik do komentarza
https://skript.pl/temat/17038-bungeecord-gui/#findComment-116704
Udostępnij na innych stronach

  • 0
31 minut temu, gitara17 napisał:

No dobra, a ta ilosc graczy online i scoreboard? Widzałem takie cos na innych serwerach...

To już są bazy danych, np. przy kliknięciu w dany item przy slocie wykonujesz komendę, która dodaje 1 do, np. zmiennej {pvp::gracze} i importuje ją do Bazy danych, i wtedy zmienna działa również na innym serwerze (serwerze: pvp) i przy evencie on quit usuwasz 1 z zmiennej {pvp::gracze}. Ja bym to tak zrobił.

Odnośnik do komentarza
https://skript.pl/temat/17038-bungeecord-gui/#findComment-116720
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...