Skocz do zawartości

ez_top1

Użytkownik
  • Ilość zawartości

    22
  • Rejestracja

  • Ostatnia wizyta

Ostatnie wizyty

Blok z ostatnimi odwiedzającymi dany profil jest wyłączony i nie jest wyświetlany użytkownikom.

Osiągnięcia ez_top1

Początkujący I

Początkujący I (2/13)

0

Reputacja

  1. tak jak w temacie jakby ktos mial to i dal DL to dziekuje
  2. plugin RealScoreBoard plugin do rang: LuckPerms zainstalowalem w placeholderze luckperms komenda /papi ecloud download luckperms uzylem %luckperms_prefix%
  3. witam chodzi mi o to ze jesli gracz ma otwarte gui to jesli kliknie np esc to go wywali z servera a gdy w gui kliknie w np jakis blok to go nie wywali
  4. ale jakbyscie mogli pomoc z tym pluginem to byl bym bardzo wdzieczny. btw wiem ze lepsze rozwiazanie jest zrobienie redis lub kryoneta lub sockety ale poprostu potzebuje do jednego projektu
  5. mam to wyslac subchannelem? czy czym zrobilem cos takiego komenda @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if(sender instanceof Player) { Player p = (Player) sender; if (args.length == 1) { ConnectUtil.sendPlayer(p, args[0]); p.sendMessage("Wyslano cie do servera" + args[0]); String is = Inv.itemStackArrayToBase64(p.getInventory().getContents()); ByteArrayOutputStream bb = new ByteArrayOutputStream(); DataOutputStream outt = new DataOutputStream(bb); try { outt.writeUTF("Forward"); outt.writeUTF("ALL"); outt.writeUTF("test"); outt.writeUTF(is); } catch (IOException e) { e.printStackTrace(); } p.sendPluginMessage(Main.getPlugin(), "BungeeCord", bb.toByteArray()); } } return false; } } odbieranie @Override public void onPluginMessageReceived(String channel, Player player, byte[] message) { if (!channel.equals("BungeeCord")) { return; } try { ByteArrayDataInput in = ByteStreams.newDataInput(message); String subChannel = in.readUTF(); if (!subChannel.equals("test")) { ItemStack[] is = Inv.itemStackArrayFromBase64(String.valueOf(message)); player.getInventory().setContents(is); } } catch (IOException e) { e.printStackTrace(); } } tylko cos mi nie dziala :c
  6. public static String itemStackArrayToBase64(ItemStack[] items) throws IllegalStateException { try { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); BukkitObjectOutputStream dataOutput = new BukkitObjectOutputStream(outputStream); // Write the size of the inventory dataOutput.writeInt(items.length); // Save every element in the list for (int i = 0; i < items.length; i++) { dataOutput.writeObject(items[i]); } // Serialize that array dataOutput.close(); return Base64Coder.encodeLines(outputStream.toByteArray()); } catch (Exception e) { throw new IllegalStateException("Unable to save item stacks.", e); } } public static ItemStack[] itemStackArrayFromBase64(String data) throws IOException { try { ByteArrayInputStream inputStream = new ByteArrayInputStream(Base64Coder.decodeLines(data)); BukkitObjectInputStream dataInput = new BukkitObjectInputStream(inputStream); ItemStack[] items = new ItemStack[dataInput.readInt()]; // Read the serialized inventory for (int i = 0; i < items.length; i++) { items[i] = (ItemStack) dataInput.readObject(); } dataInput.close(); return items; } catch (ClassNotFoundException e) { throw new IOException("Unable to decode class type.", e); } } takie cos?
  7. czesc poszukuje skryptu na spawnery ze np jest spawner malych spiderow i jak wpisze np /spawner on to beda sie respic a jak dam /spawner off to nie beda i zeby byl specjalny blok co jak sie go postawi to jest hologram ze np czy jest on czy off
  8. jakby terrarioncontrol ale na 1.17.1 czyli ze customowe drzewa itp
  9. poszukuje pluginu na biomy free 1.17.1
  10. no jakby tak ale nie pokazuje ile jest tps i ile czy jest online
  11. chodzi mi ze np /list jak lobby jest online to pisze Lobby ONLINE i ile posiada akutlanie tps i np Main Online i ile posiada aktualnie tps
  12. da sie sprawdzic w skrypcie czy ktos dolaczyl przez proxy czy przez normalne ip
×
×
  • Dodaj nową pozycję...