Skocz do zawartości

xAxee

Zasłużony
  • Ilość zawartości

    6123
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    232

Treść opublikowana przez xAxee

  1. xAxee

    Skrypt

    if event-block is not water:
  2. xAxee

    pytanko

    No i możesz sobie używać, bez ich api lub czegoś tego nie zrobisz.
  3. - Powinieneś unikać polskich nazw a zwłaszcza polsko-angielskich. - main nie powinien się nazywać main tylko np nazwą pluginu - Jak już robisz osobny package na komendy i listenery to rób je osobno a nie jedną klase z listenerem i komendą. - Zrób jakiś config do zakazanych słów no bo dwa słowa to tak xd if(!message.endsWith(".")) message = message + ".";
  4. public static Integer parseInt(String s) { try { return Integer.parseInt(s); } catch(IllegalArgumentException ex) { return null; } } jeżeli nie będzie to zwróci nulla
  5. uzyj np tego first %number characters of %text%
  6. Ten temat został przeniesiony.
  7. Ten temat został zamknięty.
  8. xAxee

    anty ip

    nie, ale musisz pobrać odpowiednią wersje skripta na wersje twojego serwera
  9. xAxee

    anty ip

    Widocznie masz za starą wersje skripta, podany warunek jest dopiero od wersji 2.5.2
  10. xAxee

    Proponowanie linku

  11. xAxee

    nearest loop-block

    Problem został rozwiązany.
  12. Ten temat został przeniesiony.
  13. xAxee

    Skrypt na antylogout

  14. xAxee

    nearest loop-block

    No można wywalić funkcje ale najlepiej gdybyś pobrał odpowiednią najnowszą wersje skripta na serwer every 1 seconds: loop all players: set {_p} to loop-player loop all blocks in radius 25 around {_p}: if loop-block is furnace: if {_dis} is not set: set {_dis} to distance between {_p} and loop-block if {_dis} > (distance between {_p} and loop-block): set {_dis} to distance between {_p} and loop-block if {_dis} < 25: set action bar of {_p} to "&dGranica Spawna &8» &e%{_dis}%" if {_dis} < 15: set action bar of {_p} to "&dGranica Spawna &8» &c%{_dis}%" if {_dis} < 5: set action bar of {_p} to "&dGranica Spawna &8» &4%{_dis}%"
  15. xAxee

    nearest loop-block

    function checkBorder(p: player): loop all blocks in radius 25 around {_p}: if loop-block is furnace: if {_dis} is not set: set {_dis} to distance between {_p} and loop-block if {_dis} > (distance between {_p} and loop-block): set {_dis} to distance between {_p} and loop-block if {_dis} < 25: send action bar "&dGranica Spawna &8» &e%{_dis}%" to {_p} if {_dis} < 15: send action bar "&dGranica Spawna &8» &c%{_dis}%" to {_p} if {_dis} < 5: send action bar "&dGranica Spawna &8» &4%{_dis}%" to {_p} every 1 seconds: loop all players: checkBorder(loop-player) Niestety nie do borderu bo border nie jest blokiem
  16. xAxee

    nearest loop-block

    every 1 seconds: loop all players: loop all blocks in radius 25 around the loop-player: if loop-block is furnace: set {distance::%loop-player%} to distance between loop-player and loop-block if {distance::%loop-player%} < 25: set action bar of loop-player to "&dGranica Spawna &8» &e%{distance::%loop-player%}%" if {distance::%loop-player%} < 15: set action bar of loop-player to "&dGranica Spawna &8» &c%{distance::%loop-player%}%" if {distance::%loop-player%} < 5: set action bar of loop-player to "&dGranica Spawna &8» &4%{distance::%loop-player%}%" stop loop
  17. xAxee

    Naprawa Skryptu

    Problem został rozwiązany.
  18. xAxee

    Niewidka!

    on consume: if active potion effects of player contain invisibility: remove invisibility from player set {_potion} to potion effect of invisibility without particles for 10 minutes add {_potion} to potion effects of player
  19. xAxee

    Alfabet

    U
  20. xAxee

    Skrypt typu CobbleX

    Piszesz cobbleX a opisujesz teraz stoniarke skąd mamy wiedzieć co chciałeś... Napisałem to o co poprosiłeś czyli cobbleX.
  21. Ten temat został przeniesiony.
  22. Ten temat został przeniesiony.
  23. xAxee

    Skrypt typu CobbleX

    on load: clear {cxItems::*} add diamond to {cxItems::*} add cobblestone and cobblestone and cobblestone to {cxItems::*} #itd... command /cobblex [<text>]: trigger: if player has 8*9 of cobblestone and diamond: remove 8*9 of cobblestone from player remove diamond from player add emerald ore named "&6CobbleX" to player on place: if name of player's tool is "&6CobbleX": add location of event-block to {cx::*} on break: if {cx::*} contain location of event-block: if type of player's tool is gold pickaxe: remove location of event-block from {cx::*} drop (random element out of {cxItems::*}) at event-block stop cancel event
  24. Ten temat został przeniesiony.
  25. xAxee

    Alfabet

    F
×
×
  • Dodaj nową pozycję...