-
Ilość zawartości
987 -
Rejestracja
-
Ostatnia wizyta
-
Wygrane w rankingu
13
Treść opublikowana przez yooniks
-
at {_p} location
-
@Override public void onDisable() { System.out.println("Komendy wylaczone"); getCommand("scary1").setExecutor(new Scary1()); getCommand("scary2").setExecutor(new Scary2()); } wiesz co wlasnie robisz? wiesz do czego sluzy ondisable?
-
ItemStack#getItemMeta().addEnch....
-
to close then run player command "spawn" as op
yooniks odpowiedział(a) na Wakal pytanie w Pytania i problemy
set {_i} to {zmienna} parsed as integer format slot 6 of player with {_i} ... -
Gildie na twój serwer z tabem na bungee
yooniks odpowiedział(a) na dzoku1 temat w Archiwum współpracy
-
command /dodajdrop [<text>]: trigger: if item in hand of the player is set: set {_item} to the player's item in hand parsed as item add {_item} to the {drop::*} on rightclick with fish: #chyba fish remove 1 fish from the player's inventory drop random item out of {drop::*} raczej bedzie dzialac
-
command /villager: trigger: spawn villager at the executor location set name of last spawned villager to "&aVillager" set hp of last spawned villager to 9999 on damage: if event-entity is villager: if name of event-entity is "&aVillager": cancel event on rightclick on entity: if event-entity is villager: if name of event-entity is "&aVillager": open chest with 3 rows to the player dalej sam sobie zrób
-
Gildie na twój serwer z tabem na bungee
yooniks odpowiedział(a) na dzoku1 temat w Archiwum współpracy
To na kij go sprzedajesz jak nie ma zadnego zapisu? Podumowując temat: plugin nie ma żadnego zapisu do bazy mysql,sqlite czy chociaz .yml, wiec po wylaczeniu serwera wszystkie dane takie jak gildie itd. znikają. -
Bukkit.getServer()*
-
dałem ci coś typu "szkicu", areszte sobie sam dodaj, np. sprawdzanie permisji czy też sprawdzanie czy gracz jest zbanowany
-
a jak ma mam ci zaingerować w inny plugin? np. maxbans? no chyba ,że ten plugin ma jakiś event typu banevent to wtedy se sprawdzasz nick i unbanujesz lel
-
powinno dzialac, dlugo juz nie uzywalem tablic
-
@EventHandler public void onCommand(PlayerCommandPreProcessEvent e){ final Player p = e.getPlayer(); final String cmd = e.getMessage(); if (cmd.startsWith("ban")){ final String[] split = cmd.split(" "); if (split.length >= 1){ Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "unban "+split[0]); System.out.println("split[0] == "+split[0]); } } } a no i jeszcze permisje mozesz sprawdzac
-
Gildie na twój serwer z tabem na bungee
yooniks odpowiedział(a) na dzoku1 temat w Archiwum współpracy
W takim razie jak jest bez bazy to funnyguilds jest lepsze. I nie, fg nie wysiada przy wiekszej ilosci osob, kod ma dobry, zapis do mysql, jest pelno serwerow ktore uzywaja funnyguilds, np: mc.ench.pl - ma po 200 graczy, w piatek start pewnie bedzie 300-400 -
public NewUpdate(String version) { URL address = null; try { address = new URL("http://pvp.iq.pl/TradeIQ/version.txt"); } catch (MalformedURLException e1) { e1.printStackTrace(); } InputStreamReader pageInput = null; try { pageInput = new InputStreamReader(address.openStream()); } catch (IOException e1) { e1.printStackTrace(); } BufferedReader source = new BufferedReader(pageInput); try { this.received = source.readLine(); if (Double.valueOf(this.received).doubleValue() > Double.valueOf(version).doubleValue()) { this.require = true; TradeIQ.getInstance().getLog().warning(ChatColor.stripColor(Config.prefix) + "There is a newer version available: " + getReceived() + ", " + "you're on: " + TradeIQ.getInstance().getDescription().getVersion()); TradeIQ.getInstance().getLog().warning(ChatColor.stripColor(Config.prefix) + "You can download the newest version from: http://pvp.iq.pl/TradeIQ/latest.jar"); } } catch (IOException e) {} } można zrobić lepiej, private static TradeIQ instance; public void onEnable() { this.config = getConfig(); instance = this; czemu wy tak robicie instancje Mogłeś zrobić jakąś lepszą konfiguracje, użyć do configów jsona, itd. @EventHandler public void playerInteract(PlayerInteractEntityEvent e) { if ((e.getRightClicked() instanceof Player)) { Player player = e.getPlayer(); Player playerTwo = (Player)e.getRightClicked(); if (!player.isSneaking()) { return; } Request.trade(player, playerTwo); } } możesz dodać do configu coś typu boolean czy ma sprawdzać czy gracz jest na spawnie, i granice spawna, tak aby tylko na spawnie możnaby używać wymian znajdzie sie jeszcze kilka rzeczy, ale to szczegóły, no i w sumie to tyle ode mnie getPlugin public static <T extends JavaPlugin> T getPlugin(Class<T> clazz) This method provides fast access to the plugin that has provided the given plugin class, which is usually the plugin that implemented it. An exception to this would be if plugin's jar that contained the class does not extend the class, where the intended plugin would have resided in a different jar / classloader. Type Parameters: T - a class that extends JavaPlugin Parameters: clazz - the class desired Returns: the plugin that provides and implements said class Throws: IllegalArgumentException - if clazz is null IllegalArgumentException - if clazz does not extend JavaPlugin IllegalStateException - if clazz was not provided by a plugin, for example, if called with JavaPlugin.getPlugin(JavaPlugin.class) IllegalStateException - if called from the static initializer for given JavaPlugin ClassCastException - if plugin that provided the class does not extend the class
-
a potrafisz sobie zrobic plugin? Bo chyba nie za bardzo, to po co tu przychodzisz? Damy ci gotowca, ale nie skompresowany plugin do jara, a tego tez pewnie nie umiesz. wuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuut, mozna to zrobic w playercommandpreprocessevent
-
Wysylanie pakietu do gracza i czekanie na odebranie
yooniks odpowiedział(a) na LordzikMkoesik pytanie w Zlecenia
final Player player = x1(tupobieraszgraczanonie); final x2(tupakietnonie) myPacket = new x2(tupakietnonie); ((CraftPlayer) player).getHandle().playerConnection .sendPacket(myPacket); -
Gildie na twój serwer z tabem na bungee
yooniks odpowiedział(a) na dzoku1 temat w Archiwum współpracy
Czym wyróżnia się mój plugin: - Brakiem błędów - Rozbudowanym configiem - Pełna konfiguracja wiadomości - System efektów - Możliwość powiększania limitu członków w gildii - Startowa ochrona gildii po założeniu - Tab na bungeecord'a emm wszystko to co funnyguilds, wystarczy dodac "fgAddonEffects" i tyle może gdyby plugin był pod redisa lub mongo to byłoby warto go kupić, ale bez sensu, niczym sie nie wyróżnia -
Gildie na twój serwer z tabem na bungee
yooniks odpowiedział(a) na dzoku1 temat w Archiwum współpracy
Słabe, i zły dział. -
Wiem tylko tyle ze ten rust kosztowal na pewno wiecej niz 200zl, wiec w edycji nie mozemy ci pomoc
-
on command: command is "/ban": if arguments is set: execute console command "unban %arg%"
-
To sobie wynajmij programiste, niech ci napisze, a nie psujesz od tak komus prace.
