Skocz do zawartości

yooniks

Użytkownik
  • Ilość zawartości

    987
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    13

Treść opublikowana przez yooniks

  1. yooniks

    SK EXPLOIT

    on click: if event-item is written book or book: remove event-item from player's inventory
  2. yooniks

    Kordy

    błagam nieee, przeciez mozesz uzywac zmiennych tymczasowych lub od razu %victim's y-coordinate% itd, a ty zapelniasz variables.csv niepotrzebnymi zmiennymi
  3. yooniks

    Kordy

    aż tacy są tu idioci? Zawsze uzywam "x-coordinate of player", nawet mozna to zobaczec po moich postach sprzed kilku miesięcy na mpcforum. topic: on death: victim is player send "Zginales! Koordy: %z-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" #lub # send "Zginales! Koordy: %player's z-coordinate%, %player's y-coordinate%, %player's z-coordinate%" nie nie musi byc, nie znasz sie to nie pisz bo to jest smieszne
  4. yooniks

    Kordy

    usun "to victim parsed as player"
  5. yooniks

    Kordy

    on death: victim is player send "Zginales! Koordy: %z-coordinate of player%, %y-coordinate of player%, %z-coordinate of player%" to victim parsed as player
  6. yooniks

    Problem

    Rejestrujesz tylko jedną komende w mainie. I nie musisz sprawdzac caly czas "if cmd.getname == ...", bo przeciez robisz to w onenable, "getCommand("xxx").setExecutor(new Klasa()); //xxx == komenda"
  7. Mała poprawka. on rightclick: if player's tool is blaze rod named "&eMagiczna Rozdzka Mocy": if gamemode of player is survival: remove strength from player apply strength 2 to player for 600 seconds send "&2AMULET: &7Uzyles amuletu sily! Od teraz jestes silny jak hulk!" stop if gamemode of player is not survival: send "&2AMULET: &7Amuletow mozesz uzywac tylko w trybie survival!" stop if player's tool is magma cream named "&cAmulet Regeneracji": if gamemode of player is survival: remove regeneration from player apply regeneration 2 to player for 60 seconds send "&2AMULET: &7Uzyles amuletu regeneracji! Od teraz twoje zdrowie regeneruje sie szybciej!" spawn 50 of particle heart offset by 2, 2, 2 at player stop if gamemode of player is not survival: send "&2AMULET: &7Amuletow mozesz uzywac tylko w trybie survival!" stop if player's tool is feather named "&5Amulet Skoku": if gamemode of player is survival: remove jump from player apply jump 3 to player for 600 seconds send "&2AMULET: &7Uzyles amuletu skoku! Teraz skaczesz 3 razy wyzej!" stop if gamemode of player is not survival: send "&2AMULET: &7Amuletow mozesz uzywac tylko w trybie survival!" stop if player's tool is blaze powder named "&1Boski Amulet Szybkosci": if gamemode of player is survival: remove speed from player apply speed 2 to player for 600 seconds send "&2AMULET: &7Uzyles amuletu szybkosci! Od teraz jestes szybki jak wiatr!" stop if player's tool is nether star named "&4Amulet Boskiego Swiatla": if gamemode of player is survival: remove night vision from player apply night vision 2 to player for 600 seconds send "&2AMULET: &7Uzyles amuletu swiatla! Od teraz widzisz w ciemnosciach!" stop Czemu kurde uzywacie "execute console command 'give ....'" a potem enchant tool with xxx? Serio, nic nie udostepniajcie jak kazdy skrypt ma byc typu execute console command "/give %player% diamond_sword 1 name:&5&lMiecz_Zaglady enchant tool with unbreaking 20 enchant tool with knockback 2 enchant tool with fireaspect 3 enchant tool with bane 3 enchant tool with looting 2 enchant tool with sharpness 6 //Przyczepiali się o słowa więc zmniejszyłem znaczenie "wulgaryzmu" @JPablo
  8. command /shopvip [<text>]: trigger: if arg-1 is set: set {_text} to arg-1 parsed as text broadcast "xxx" broadcast "&7Gracz &6%{_text}% &7zakupil range &eVIP&7!" broadcast "&7Zakup i ty: &awww.xxx.pl" broadcast "xxx"
  9. yooniks

    Premium

    Zawsze możesz sprawdzić czy gracz jest premium, i jeżeli tak to ustawiać "połączenie" na onlinemode. private boolean hasPaid(String nick) { try { final URL url = new URL("https://api.mojang.com/users/profiles/minecraft/" + nick); final BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); String hasPaid; if ((hasPaid = reader.readLine()) != null) { reader.close(); return true; } else{ reader.close(); return false; } } catch (Exception e) { e.printStackTrace(); } return false; } //BungeeCord, onEnable() this.getProxy().getPluginManager().registerListener(this, new Listener() { @EventHandler public void onConnect(PreLoginEvent e) { if (e.isCancelled()) return; final ProxiedPlayer proxiedPlayer = getProxy().getPlayer(e.getConnection().getName()); final User u = User.getUser(proxiedPlayer); if (hasPaid(e.getConnection().getName())) { u.setPremium(true); e.getConnection().setOnlineMode(true); this.getLogger().info("Player "+e.getConnection().getName()+" has paid for premium account); } else { u.setPremium(false); e.getConnection().setOnlineMode(false); } } });
  10. /* Obiekt user */ private String nickname; public User(..., String nickname){ ... this.nickname = nickname; } public String getNickname(){ return this.nickname; } /* event onjoin, listener */ public class PlayerConnectListener implements Listener{ @EventHandler public void onConnect(AsyncPlayerPreLoginEvent e){ final User u = User.get(...); if (!/*e.getnickname/*.equals(u.getNickname()){ e.dissalow(...KICK_OTHER, ChatColor.GREEN+"Twoj poprawny nick: "+u.getNickname()); } } }
  11. XD? if {event.status} is true: send "online" to the player else if {event.status} is false: send "offline" to the player
  12. tlumaczy dobrze, ale on uczy bukkitapi, a nie javy, a kazdy poczatkujacy powinien znac podstawy javy, bo pozniej sa przez to problemy.
  13. javadeobfuscator.com
  14. this.minecraft.getNetHandler().addToSendQueue(new C0APacketAnimation());
  15. set helmet of last spawned entity's to diamond helmet
  16. a ja zamiast takich dlugich replace polecam jakiegos loopa, lub skriptplus i complete uncapitalization of %string% #From "THIS IS TEST" to "this is test"
  17. on death: victim is zombie set {xp} to true wait 2 seconds set {xp} to false on exp spawn: if {xp} is true: cancel event
  18. set block at {location} to dirt
  19. dałem tylko przykład.
  20. yooniks

    Co to jest ?

    parsed as
  21. yooniks

    Jak to zrobić?

    on rightclick on block: if location at event-block is {location}: #do something on place of head: set {location} to location at event-block
  22. public static Map<UUID, Long> map = new HashMap<>(); //kod final UUID uuid = player.getUniqueId(); if (!map.containsKey(uuid) || map.get(uuid) <= 0L){ //Nie pamietam ile to bylo 1000L, chyba jedna sekunda final int 7days = 604800; //7 dni to 604800 sekund map.put(uuid, System.currentTimeMillis()+1000L*7days); giveKit(player); player.sendMessage("Odebrales swoj zestaw! Nastepny raz mozesz go wziac za 7dni."); } else if (map.containsKey(uuid) && map.get(uuid) > 0L)){ player.sendMessage("Nie mozesz odebrac swojego zestawu! Musisz poczekac 7 dni od ostatniego zabrania."); return; } //metoda do dawania zestawu public static void giveKit(Player p){ p.getInventory().addItem(new ItemStack(Material.DIAMOND, 10)); }
  23. yooniks

    Skript na Resp

    on spawn of creature: event-entity is zombie if name of event-entity isn't set: cancel event stop
  24. a gdzie ja pisze ze tak MUSI BYC?
  25. if arg 1 is not set: open chest with 2 rows named "&e&k;;&6CRAFT&aNARKO&e&k;;" to player zle wytabowane, i jak raz sprawdzasz if, to potem else if
×
×
  • Dodaj nową pozycję...