-
Ilość zawartości
999 -
Rejestracja
-
Ostatnia wizyta
-
Wygrane w rankingu
23
Odpowiedzi społeczności
-
Shooterowy odpowiedź w Skrypt na /przelej został oznaczony jako odpowiedź
command /przelej [<text>] [<text>]: permission: waluta.przelej permission message: &cBrak uprawnień. trigger: if arg 1 is not set: send "&c/przelej <gracz> <kwota>" stop if {waluta::%arg 1%} is not set: send "&cNie ma takiego gracza." stop if arg 1 is name of player: send "&cNie możesz przelać sobie pieniędzy." stop if arg 2 is not set: send "&c/przelej <gracz> <kwota>" stop if arg 2 parsed as number is not set: send "&c/przelej <gracz> <kwota>" stop if arg 2 parsed as number is less than or equal to 0.009: send "&cKwota musi być większa niż $0.009." stop set {_ilosc} to arg 2 parsed as number if {waluta::%player%} is less than {_ilosc}: send "&cNie masz tyle pieniędzy." stop remove {_ilosc} from {waluta::%player%} add {_ilosc} to {waluta::%arg 1%} send "&7Przelałeś &c$%{_ilosc}% &7do &9%arg 1%&7. Stan konta: &c$%{waluta::%player%}%" send "&9%player% przelał Ci &c$%{_ilosc}%&7. Stan konta: &c$%{waluta::%arg 1%}%" to arg 1 parsed as player
-
Shooterowy odpowiedź w Skrypt na kule ulepszenia został oznaczony jako odpowiedź
Napisałem coś innego, może Ci się spodoba.
command /kula: permission: admin.kula trigger: add 64 fire charge named "&a&lKULA ULEPSZENIA" with lore "&eKliknij nią na przedmiot w ekwipunku, aby go ulepszyć!" and "&f(nie działa na najlepsze enchanty)" to player on rightclick: if name of player's tool is "&a&lKULA ULEPSZENIA": cancel event on inventory click: type of cursor slot of player is fire charge name of cursor slot of player is "&a&lKULA ULEPSZENIA" if clicked slot is any sword or any armor: cancel event if clicked slot is any sword: if clicked slot is enchanted with sharpness: set {_lvl} to level of sharpness of clicked slot if {_lvl} is less than 5: add 1 to {_lvl} enchant clicked slot with "sharpness %{_lvl}%" parsed as enchantment type remove 1 of cursor slot of player from cursor slot of player send "&aUlepszyłeś %type of clicked slot% na ostrość %{_lvl}%" play sound "BLOCK_ANVIL_USE" to player else: send "&cPrzedmiot posiada maksymalny poziom zakęcia ostrość." play sound "ITEM_SHIELD_BLOCK" to player else: send "&cPrzedmiot nie posiada zaklęcia ostrość!" play sound "ENTITY_VILLAGER_NO" to player else: if clicked slot is any armor: if clicked slot is enchanted with protection: set {_lvl} to level of protection of clicked slot if {_lvl} is less than 4: add 1 to {_lvl} enchant clicked slot with "protection %{_lvl}%" parsed as enchantment type remove 1 of cursor slot of player from cursor slot of player send "&aUlepszyłeś %type of clicked slot% na ochrona %{_lvl}%" play sound "BLOCK_ANVIL_USE" to player else: send "&cPrzedmiot posiada maksymalny poziom zakęcia ochrona." play sound "ITEM_SHIELD_BLOCK" to player else: send "&cPrzedmiot nie posiada zaklęcia ochrona!" play sound "ENTITY_VILLAGER_NO" to player
-
Shooterowy odpowiedź w you have no home bed or charge respawn anchor or it was obstructed został oznaczony jako odpowiedź
Zmienna z _ na początku to zmienna tymczasowa, może być ona używana w obrębie jednego eventu.
@pruslay Spróbuj tak:
on death: victim is a player bed location of victim is not set set the bed location of victim to spawn point of "world" -
Shooterowy odpowiedź w Problem z konfiguracją pluginu na wymianę surowców został oznaczony jako odpowiedź
-
Shooterowy odpowiedź w Usuwanie z lore tekstu i zamiana na liczbę został oznaczony jako odpowiedź
Zamień
set {_liczba} to 1st line of lore of attacker's tool na
set {_liczba} to uncoloured 1st line of lore of attacker's tool
-
Shooterowy odpowiedź w Cooldown został oznaczony jako odpowiedź
options: czas: 5 minutes on rightclick with amethyst shard: if player's tool is amethyst shard named "&c&lMagiczny Amulet": if difference between {amulet::%player%} and now is smaller than {@czas}: send "&cAmulet nie jest jeszcze gotowy." stop set {amulet::%player%} to now remove regeneration from player remove absorption from player remove resistance from player remove fire resistance from player remove strength from player remove speed from player remove amethyst shard named "&c&lMagiczny Amulet" from player wait 1 tick apply speed 3 to player for 10 seconds apply strength 2 to player for 10 seconds apply fire resistance 4 to player for 10 seconds apply resistance 4 to player for 10 seconds apply absorption 4 to player for 10 seconds apply regeneration 2 to player for 10 seconds send "&b&l» &7Uzyles Amuletu! &cEfekty zostaly nadane!"
W twoim kodzie sprawdzasz, czy gracz ma ametyst z nazwą a potem usuwasz szmaragd z nazwą, poprawiłem Ci to.
-
Shooterowy odpowiedź w Skrypt na portfel i rangi w gui został oznaczony jako odpowiedź
function showScoreboard(player: player): while {_player} is online: if {scoreboard::%{_player}%} is false: exit loop set {_rank} to placeholder "vault_rank" from {_player} set title of {_player}'s scoreboard to "&aWitaj, &6%{_rank}% %{_player}%&a!" set line 1 of {_player}'s scoreboard to "Portfel: %{portfel::%{_player}%}%" wait a second on join: wait a tick showScoreboard(player) command /sb: trigger: if {scoreboard::%player%} is false: set {scoreboard::%player%} to true send "&aScoreboard włączony." showScoreboard(player) else: set {scoreboard::%player%} to false send "&cScoreboard wyłączony." clear player's scoreboard Wymagane:
- PlaceholderAPI
- skript-placeholders / ersatz
-
Shooterowy odpowiedź w zapis ekwipunku został oznaczony jako odpowiedź
command /zapisz [<text>]: trigger: if player's inventory is empty: send "&cTwój ekwipunek jest pusty!" stop if arg is not set: send "&cPodaj nazwę ekwipunku!" stop if {saveInv::%player%::%arg%} is set: send "&cTa nazwa jest już zajęta!" stop set {saveInv::%player%::%arg%} to arg set {saveInv::%player%::%arg%::date} to now set {_s} to 0 loop 41 times: if slot {_s} of player is not empty: set {saveInv::%player%::%arg%::items::%{_s}%} to slot {_s} of player add 1 to {_s} clear player's inventory send "&eTwój ekwipunek z nazwą &9%arg% &ezostał zapisany dnia &9%{saveInv::%player%::%arg%::date}%" send "&7Zapisanych przedmiotów: &9%size of {saveInv::%player%::%arg%::items::*}%" command /przywroc [<text>]: trigger: set {_inv} to chest inventory with 1 row named "&aZapisane ekwipunki" set {_s} to 0 loop {saveInv::%player%::*}: set slot {_s} of {_inv} to chest named "&c%loop-index%" with lore "&eData zapisu: &9%{saveInv::%player%::%loop-index%::date}%" and "&eZapisanych przedmiotów: &9%size of {saveInv::%player%::%loop-index%::items::*}%" and "&ePrzedmioty:" loop {saveInv::%player%::%loop-index%::items::*}: add " &e- &9%loop-value-2%" to lore of slot {_s} of {_inv} add 1 to {_s} open {_inv} to player on inventory click: if name of event-inventory is "&aZapisane ekwipunki": cancel event if clicked inventory is player's inventory: stop if type of clicked slot is not chest: stop if player's inventory is not empty: send "&cTwój ekwipunek musi być pusty!" stop set {_id} to uncolored name of clicked slot loop {saveInv::%player%::%{_id}%::items::*}: set {_s} to loop-index parsed as integer set {_i} to loop-value set slot {_s} of player to {_i} close player's inventory send "&eEkwipunek z dnia &9%{saveInv::%player%::%{_id}%::date}% &ezostał przywrócony." clear {saveInv::%player%::%{_id}%::*} and {saveInv::%player%::%{_id}%}
-
Shooterowy odpowiedź w Gui /rangi został oznaczony jako odpowiedź
function rangiGUI(p: player): set {_gui} to chest inventory with 5 rows named "&e&lRangi" set slot (numbers between 0 and 44) of {_gui} to black stained glass pane named "&bRangi dostępne na serwerze" set slot 10 of {_gui} to iron ingot named "&7MiniVip" with lore "Przykładowy opis" set slot 13 of {_gui} to gold ingot named "&6Vip" with lore "Przykładowy opis" set slot 16 of {_gui} to diamond named "&3SuperVip" with lore "Przykładowy opis" set slot 28 of {_gui} to emerald named "&aMegaVip" with lore "Przykładowy opis" set slot 31 of {_gui} to item frame named "&cYouTuber" with lore "Przykładowy opis" set slot 34 of {_gui} to glow item frame named "&cYouTuber&4+" with lore "Przykładowy opis" open {_gui} to {_p} on inventory click: if name of event-inventory is "&e&lRangi": cancel event command /rangi: trigger: rangiGUI(player)
Skript 2.6.4
-
Shooterowy odpowiedź w Skrypty killstreak i K/D na scoreboard został oznaczony jako odpowiedź
on death: victim is a player add 1 to {Stats::%victim's uuid%::deaths} attacker is a player attacker is not victim add 1 to {Stats::%attacker's uuid%::kills} and {Stats::%attacker's uuid%::killstreak} set {Stats::%victim's uuid%::killstreak} to 0 on join: if {Stats::%player's uuid%::kills} is not set: set {Stats::%player's uuid%::kills} to 0 set {Stats::%player's uuid%::deaths} to 0 set {Stats::%player's uuid%::killstreak} to 0 while player is online: set {_kd} to {Stats::%player's uuid%::kills}/{Stats::%player's uuid%::deaths} if {_kd} is less than 0: set {_kd} to 0 set title of player's scoreboard to "&a&lStatystyki" set line 4 of player's scoreboard to " &eZabójstwa: &c%{Stats::%player's uuid%::kills}%" set line 3 of player's scoreboard to " &eŚmierci: &c%{Stats::%player's uuid%::deaths}%" set line 2 of player's scoreboard to " &eK/D: &c%{_kd}%" set line 1 of player's scoreboard to " &eKillStreak: &c%{Stats::%player's uuid%::killstreak}%" wait 1 second
-
Shooterowy odpowiedź w Włączony serwer, a "wait" został oznaczony jako odpowiedź
command /test: trigger: set {zmienna} to now every 1 minute: if {zmienna} is set: if difference between {zmienna} and now is more than 24 hours: broadcast "Minęły 24 godziny" clear {zmienna}
-
Shooterowy odpowiedź w Przypisane itemy został oznaczony jako odpowiedź
on rightclick: if player's tool is elytra: if player's chestplate is air: if lore of player's tool is not set: set lore of player's tool to "&7Znalezione przez: &c%player%" stop set {_lore} to "%uncoloured lore of player's tool%" set {_owner} to 2nd element of {_lore} split at ": " if {_owner} is not "%player%": send "&cNie możesz tego używać." cancel event on inventory click: if event-inventory is player's inventory: if clicked slot is 38: if cursor slot of player is elytra: if lore of cursor slot of player is not set: set lore of cursor slot of player to "&7Znalezione przez: &c%player%" stop set {_lore} to "%uncoloured lore of cursor slot of player%" set {_owner} to 2nd element of {_lore} split at ": " if {_owner} is not "%player%": send "&cNie możesz tego używać." cancel event else: if clicked slot is elytra: if click type is left mouse button with shift or right mouse button with shift: if player's chestplate is air: if lore of clicked slot is not set: set lore of clicked slot to "&7Znalezione przez: &c%player%" stop set {_lore} to "%uncoloured lore of clicked slot%" set {_owner} to 2nd element of {_lore} split at ": " if {_owner} is not "%player%": send "&cNie możesz tego używać." cancel event
-
Shooterowy odpowiedź w Wiadomosc dla pobliskich graczy został oznaczony jako odpowiedź
command /ez: trigger: send "Wiadomość" to players in radius 10 around player
-
Shooterowy odpowiedź w Data format na broni został oznaczony jako odpowiedź
on rightclick: lore of player's tool is not set set lore of player's tool to "&aData stworzenia: &4%now%"
-
Shooterowy odpowiedź w Problem z bat został oznaczony jako odpowiedź
[14:51:53 WARN]: [AuthMe] You are running an unsupported server version (CraftBukkit v. git-Bukkit-18fbb24 (MC: 1.8.8)). AuthMe requires Spigot 1.8.X or later! [14:51:53 WARN]: [AuthMe] THE SERVER IS GOING TO SHUT DOWN AS DEFINED IN THE CONFIGURATION!
AuthMe wyłącza serwer, bo jest niekompatybilne z twoim silnikiem.
-
Shooterowy odpowiedź w Gui (Hopper) został oznaczony jako odpowiedź
command /test: trigger: set {_gui} to hopper inventory named "&aTest" set slot 2 of {_gui} to diamond open {_gui} to player
-
Shooterowy odpowiedź w Od teraz jestes został oznaczony jako odpowiedź
Plugin: Klik (zippyshare)
Skan: Klik (virustotal)
Jeśli chcesz kod źródłowy to napisz do mnie na forum.
-
Shooterowy odpowiedź w Wykrywanie gracza po zmiennej został oznaczony jako odpowiedź
command /dodaj [<offlineplayer>]: trigger: if arg 1 is set: add arg 1 to {narko::*} send "&aPomyslnie dodano gracza" to player else: send "&cPodaj nick gracza" to player command /lista: trigger: send "&bLista gangsterow: %{narko::*}%" command /usun [<offlineplayer>]: trigger: if arg 1 is set: if {narko::*} contains arg 1: remove arg 1 from {narko::*} send "&aPomyslnie usunieto gracza" to player else: send "&cBrak gracza na liście" else: send "&cPodaj nick gracza" to player command /narko: trigger: if {narko::*} contains player: send "&aJesteś na liście" to player else: send "&cNie jesteś na liście"
-
Shooterowy odpowiedź w Blokada naprawiania w kowadle został oznaczony jako odpowiedź
type of event-item-two is diamond
-
Shooterowy odpowiedź w Usunięcie dropu z mobów. został oznaczony jako odpowiedź
on death of zombie: clear drops #usuwa cały drop remove iron ingot from drops #usuwa sztabkę żelaza z dropu
-
Shooterowy odpowiedź w Problem YAML został oznaczony jako odpowiedź
Niestety nie da się użyć zmiennej w tym evencie.
Możesz zrobić coś takiego:
#Przykład on script load: set {time} to 10 set {timer} to 0 every 1 minute: if {timer} < {time}: add 1 to {timer} if {timer} = {time}: broadcast "test" set {timer} to 0
-
Shooterowy odpowiedź w Problem z Cobblex został oznaczony jako odpowiedź
Wymyśliłem coś takiego.
@Override public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] args) { Player p = (Player)sender; ItemStack cobblex = Cobblexcx.Mossy(p); ItemStack itemstack = new ItemStack(Material.COBBLESTONE, 576); if(args.length == 0) { if(!p.getInventory().containsAtLeast(itemstack, 576)) p.sendMessage("§c§lBRAK PRZEDMIOTU §8§k|§7 §7576 COBBLESTONE §8§k|"); else { p.getInventory().removeItem(itemstack); p.sendMessage("§7Otrzymałeś/aś §81x Cobblex §7do ekwipunku!"); p.getInventory().addItem(cobblex); } } else p.sendMessage("§c§lUZYCIE §8§k|§7 §7/cobblex §8§k|§7 §7/cx §8§k|"); return false; }
Nie jestem jakiś wybitny w pisaniu pluginów, więc ten kod może być tragiczny.
