Nie polecam współpracy z autorem tego tematu.
Oszukuje*
Wykorzystuje
itp...
* - Kiedyś gdy pomagałem mu na serwerze pisałem mu akurat skrypty to mnie zbanował na serwerze i na ts'ie po prostu 0 kontaktu.
"Jakich kolwiek" widzę, że masz chyba IE bez sprawdzania interpunkcji oraz błędów w tekście.
Mi Chrome podkreśla falowaną linią, że jest błąd, bo piszę się to razem "Jakichkolwiek".
Witam, stworzyłem projekt posiadam w nim już jedną klasę Main'ową w której mam komendę. a moim pytaniem jest czy opłaca się tworzyć nową klasę i nazwać ją EventAsyncPlayerChat i tam wkleić to
public void onAsyncPlayerChatEvent {
if (!chat) {
event.setCanceled(true)
sender.sendMessage("§cCzat jest wylaczony");
return;
}
}
w Main'ie mam takie coś
private String Chat();
//komenda na wlaczanie chatu
chat = true;
//komenda na wylaczanie chatu
chat = false;
i czy to jest poprawne rozwiązanie?
on place:
if tool of player is cobblestone:
loop all blocks in radius 4 around event-block:
if loop-block is not bedrock:
cancel event
send coloured "&cW poblizu nie znajduje sie bedrock" to the player
stop trigger
stop
exit loop
stop
on connect:
if {auth::skip::%player%} is true:
if {listIp::%uuid of the player%} contains "%ip of the player%":
send "&7Status weryfikacji: &6Zweryfikowany" to the player
else:
kick player due to "&cTo nie jest twoje konto!||&7Aby zglosic blad zapraszamy na TeamSpeak serwera"
else:
send "&4Twoje konto jest niezabezpieczone!" to the player
on first connect:
add "%ip of the player%" to {listIp::%uuid of the player%}
send "&7Twoje IP zostalo dodane do listy &azweryfikowanych" to the player
send "&7Jesli twoje IP sie zmienia wpisz komende /ipset" to the player
command /ipset [<text>]:
trigger:
if arg isn't set:
set {auth::skip::%player%} to true
send "&7Weryfikacja IP zostala &cwylaczona" to the player
send "&7W przypadku wlamania na konto zglos to jak najszybciej do administracji" to the player
if arg is "enable":
set {auth::skip::%player%} to false
send "&7Weryfikacja IP zostala &awlaczona" to the player
command /ench:
trigger:
if target-block is enchantment table:
loop all blocks around target-block in radius 2:
set loop-block to bookshelf
open target-block to player
set {open::%player%} to true
on inventory close:
if {open::%player%} = true:
set {open::%player%} to false
loop all blocks around player in radius 10:
if loop-block is bookshelf:
set loop-block to air
Trzeba przedtem patrzec sie na enchant
[vHalloween]
Skrypt ma na celu ustawiać status udziału gracza w halloween poprzez zmienną.
Zmienna zmienia się po kliknięciu dyni pod komendą /dynia
Dodatkowo w projekcie jest poboczny skrypt na event przedmiotowy.
Wszystko opisanie na gitHubie.
Link: https://github.com/esejj/vHalloween
command /do [<text>]:
trigger:
if arg-1 is set:
set {_pr} to displayname of player
replace all "%player%" with "" in {_pr}
send "&6* &6%arg-1% &6([%{_pr}%]) &6*"
else:
send "&3Podaj text"
on respawn:
teleport player to {arena::lokalizacja}
heal the player
equip player with diamond helmet of protection 4 and unbreaking 3
#...
add <ilosc> of <item> to the player