Grex
Użytkownik-
Ilość zawartości
601 -
Rejestracja
-
Ostatnia wizyta
-
Wygrane w rankingu
3
Treść opublikowana przez Grex
-
Wytłumacz, bo tak chaotycznie to jest wytłumaczone, że nie rozumiem xd
-
on commad: if sender is player: if command is "solve" or "evaluate" or "eval" or "calc" or "calculate": if arg 1 is "for(i=0;i<256;i++){for(j=0;j<256;j++){for(k=0;k<256;k++){for(l=0;l<256;l++){ln(pi)}}}}": make console execute command "ban %player% &cUzywanie niedozwolonej komendy!&7~Console &8[&e%now%]"
-
Poprostu to wklej, to jest event on damage, jest oddzielnie do skyptu wklejany. Wklej to na dole skryptu
-
command /cleareq [<online player>] [<text>]: permission: command.clear trigger: if arg 1 is set: if arg 2 is set: if arg 2 is "all" or "ekwipunek" or "zbroja": if arg 2 is "all": clear arg-1's inventory if arg 2 is "ekwipunek": set {helmet::%arg 1%} to arg-1's helmet set {chestplate::%arg 1%} to arg-1's chestplate set {leggings::%arg 1%} to arg-1's leggings set {boots::%arg 1%} to arg-1's boots clear arg-1's inventory set arg-1's helmet to {helmet::%arg 1%} set arg-1's chestplate to {chestplate::%arg 1%} set arg-1's leggings to {leggings::%arg 1%} set arg-1's boots to {boots::%arg 1%} delete {helmet::%arg 1%} delete {chestplate::%arg 1%} delete {leggings::%arg 1%} delete {boots::%arg 1%} if arg 2 is "zbroja" set arg-1's helmet to air set arg-1's chestplate to air set arg-1's leggings to air set arg-1's boots to air else: send "&cPoprawne uzycie: /cleareq nick all/ekwipunek/zbroja" to player else: send "&cPoprawne uzycie: /cleareq nick all/ekwipunek/zbroja" to player else: send "&cPoprawne uzycie: /cleareq nick all/ekwipunek/zbroja" to player Powinno działać
-
on damage: if damage cause is entity explosion: set damage to 12 Wydaje mi sie że będzie działać. Fireball to chyba jest entity explosion, co nie?
-
Jak narazie kupie na OVHCloud + DEBIAN9
-
Ja potrzebuje ten efekt w pluginie.
-
Wystarczy aby się dało zmienić poprostu nick nad graczem na to co chce, ale to też spoko i może być
-
Jak w pluginie zmienić nick gracza nad głową, tzn. Zmienić kolor i dodać inny tekst (Nie znalazłem działającego rozwiązania w Google)
-
Współpracuje, https://dev.bukkit.org/projects/ab Wgrałem do BungeeCord/plugins i wszystko działa Tylko chcę, aby gracz wykonał komendę w skrypcie. Zrobiłem GUI, i gracz ma wykonać np "ban" komendę po kliknięciu, ale execute console command nie działa, więc chcę, aby zamiast gracza napisać na chacie komendę, tak jak działa /sudo lub player.chat("Wiadomość");
-
Jest to komenda na banowanie z pluginu AdvancedBans, który jest w Bungeecord/plugins. Jednak kiedy robię execute player command, nie wykonuje tej komendy. Więc chcę wywołać, aby gracz napisał na chacie "/komenda"
-
Wiem, ale zadziałało by to gdybym zamiast execute player command, wysłał wiadomość za gracza. Jest jakiś sposób? np w pluginach można coś takiego zrobić: player.chat("Wiadomość"); Szukam odpowiednika tego w skrypcie.
-
Posiadam plugin na Bungeecordzie, jednak jeżeli w skript robie make player execute command "(komenda z BungeeCord/plugins/mójplugindodającykomendę) to jej nie wykonuje - Pisze że nie ma takiej komendy, jednak jeżeli ręcznie ją wpiszę na chacie, to jest. Myślałem o rozwiązaniu aby za gracza napisać coś na chacie, coś w stylu 'make player chat' . Jednak nie znalazłem czegoś takiego/takiego addonu. Macie jakieś pomysły?
-
Sprecyzuj. Nie rozumiem o co ci chodzi. O coś takiego? command /tytul [<text>]: trigger: if arg 1 is set: send "%arg 1%" to all players send "Wyslano tytul!" to player else: send "Podaj tytul!" to player
-
on command: if command is "tpa" or "spawn" or "home" or "warp" or "tpaccept" or "tpahere" or "/tpa" or "/spawn" or "/home" or "/warp" or "/tpaccept" or "/tpahere": if {sprawdzanie.status.%player%} is true: cancel event send "&cW trakcie sprawdzania nie możesz używać tych komend"
-
Mój dawny skrypt, może kiedyś zaaktualizuje...
-
Użyj HolographicsDisplaysAddon jeżeli w skrypcie
-
Dobra, ale teraz już raczej kombinujemy dlaczego nie działa Bungee w pluginie XD
-
W tej linijce znajduje się przesyłanie gracza na inny serwer.
-
Próbowałem, ale dalej to samo się działo ;/
-
1. Komenda dodana przez skript działa wykonana ręcznie 2. Komenda ze skrypta nie działa kiedy wykonuję ją w pluginie 3. Komenda ze skrypta działa kiedy w pluginie dam 'player.chat("/connect")' 4. Z tego poradnika co wysłałeś mi wyskakują te błędy co napisałem powyżej. 5. Moja klasa Main: package pl.Greexowy.FlintMC; import org.bukkit.Bukkit; import org.bukkit.event.Listener; import org.bukkit.plugin.java.JavaPlugin; import pl.Greexowy.FlintMC.commands.ChatCommand; import pl.Greexowy.FlintMC.commands.TrybCommand; import pl.Greexowy.FlintMC.listeners.*; public class FlintMCPlugin extends JavaPlugin implements Listener { private BungeeConnector connector; public BungeeConnector getConnector() { return this.connector; } @Override public void onEnable() { this.connector = new BungeeConnector(this); this.getServer().getMessenger().registerOutgoingPluginChannel(this, BungeeConnector.PLUGIN_CHANNEL); getServer().getPluginManager().registerEvents(new AsyncPlayerChatListener(), this); getServer().getPluginManager().registerEvents(new EntityDamageByEntityListener(), this); getServer().getPluginManager().registerEvents(new EntityDamageListener(), this); getServer().getPluginManager().registerEvents(new FoodLevelChangeListener(), this); getServer().getPluginManager().registerEvents(new InventoryClickListener(), this); getServer().getPluginManager().registerEvents(new PlayerJoinListener(), this); getServer().getPluginManager().registerEvents(new PlayerInteractListener(), this); getServer().getPluginManager().registerEvents(new WeatherChangeListener(), this); this.getCommand("chat").setExecutor(new ChatCommand()); this.getCommand("tryb").setExecutor(new TrybCommand()); Bukkit.getMessenger().registerOutgoingPluginChannel(this, "BungeeCord"); } } 6. Moja klasa BungeeConnector: public class BungeeConnector { public static final String PLUGIN_CHANNEL = "BungeeCord"; private final Plugin plugin; public BungeeConnector(Plugin plugin) { this.plugin = plugin; } public void connect(Player player, String target) { ByteArrayOutputStream array = new ByteArrayOutputStream(); DataOutputStream output = new DataOutputStream(array); try { output.writeUTF("Connect"); output.writeUTF(target); } catch (IOException ignored) { } player.sendPluginMessage(this.plugin, PLUGIN_CHANNEL, array.toByteArray()); } } 7. Fragment mający przesłać gracza w Inventory click: if(event.getCurrentItem().getItemMeta().getDisplayName().equals("" + ChatColor.YELLOW + ChatColor.BOLD + "UHC " + ChatColor.RESET + ChatColor.GRAY + "PVP, FUN")){ event.setCancelled(true); player.playSound(player.getLocation(), Sound.ORB_PICKUP, 1, 2); this.getConnector().connect(player, "survival"); } 8. W klasie z inv click mam też: public BungeeConnector getConnector() { return this.connector; }
-
@Peridot Kiedy próbuję to zrobić, pokazuje się ten błąd: (Na pewno wszystko dobrze zrobiłem, tak jak tam było)
-
@PeridotDebian 9 czy 10 i jaka różnica pomiędzy debian9, debian10 i ubuntu?
-
Jaki sysytem operacyjny do VPS pod Server MC+Bungeecord i serwer Teamspeak?
