kapi. 332 Opublikowano 10 sierpnia 2017 Udostępnij Opublikowano 10 sierpnia 2017 package com.earth2me.essentials.commands; import com.earth2me.essentials.CommandSource; import com.earth2me.essentials.I18n; import com.earth2me.essentials.User; import com.earth2me.essentials.utils.FormatUtil; import java.util.logging.Level; import java.util.logging.Logger; import net.ess3.api.IEssentials; import org.bukkit.Server; public class Commandhelpop extends EssentialsCommand { public Commandhelpop() { super("helpop"); } public void run(Server server, User user, String commandLabel, String[] args) throws Exception { user.setDisplayNick(); String message = sendMessage(user.getSource(), user.getDisplayName(), args); if (!user.isAuthorized("esej.helpop.receive")) { user.sendMessage(message); } } public void run(Server server, CommandSource sender, String commandLabel, String[] args) throws Exception { sendMessage(server, sender, "ROOT", args); } private String sendMessage(Server server, CommandSource sender, String from, String[] args) throws Exception { if (args.length < 1) { throw new NotEnoughArgumentsException(); } String message = I18n.tl("helpOp", new Object[] { from, FormatUtil.stripFormat(getFinalArg(args, 0)) }); server.getLogger().log(Level.INFO, message); this.ess.broadcastMessage("esej.helpop.receive", message); return message; } } Póki co na razie wzoruję się na innych pluginach edytuje itp... lecz coś mi tu nie chce działać pomoże ktoś?@Wizzard? @KrejzolekPRO Odnośnik do komentarza https://skript.pl/temat/20686-co-zrobi%C5%82em-%C5%BAle/ Udostępnij na innych stronach Więcej opcji udostępniania...
2 KrejzolekPRO 600 Opublikowano 10 sierpnia 2017 Udostępnij Opublikowano 10 sierpnia 2017 1 minutę temu, esej napisał: package com.earth2me.essentials.commands; import com.earth2me.essentials.CommandSource; import com.earth2me.essentials.I18n; import com.earth2me.essentials.User; import com.earth2me.essentials.utils.FormatUtil; import java.util.logging.Level; import java.util.logging.Logger; import net.ess3.api.IEssentials; import org.bukkit.Server; public class Commandhelpop extends EssentialsCommand { public Commandhelpop() { super("helpop"); } public void run(Server server, User user, String commandLabel, String[] args) throws Exception { user.setDisplayNick(); String message = sendMessage(user.getSource(), user.getDisplayName(), args); if (!user.isAuthorized("esej.helpop.receive")) { user.sendMessage(message); } } public void run(Server server, CommandSource sender, String commandLabel, String[] args) throws Exception { sendMessage(server, sender, "ROOT", args); } private String sendMessage(Server server, CommandSource sender, String from, String[] args) throws Exception { if (args.length < 1) { throw new NotEnoughArgumentsException(); } String message = I18n.tl("helpOp", new Object[] { from, FormatUtil.stripFormat(getFinalArg(args, 0)) }); server.getLogger().log(Level.INFO, message); this.ess.broadcastMessage("esej.helpop.receive", message); return message; } } Póki co na razie wzoruję się na innych pluginach edytuje itp... lecz coś mi tu nie chce działać pomoże ktoś?@Wizzard? @KrejzolekPRO Robisz wielki błąd. Nie znasz podstaw a bierzesz się za takie coś... Pooglądaj pierwsze odcinki Kamilkime, a potem analizuj łatwiejsze pluginy. Odnośnik do komentarza https://skript.pl/temat/20686-co-zrobi%C5%82em-%C5%BAle/#findComment-140581 Udostępnij na innych stronach Więcej opcji udostępniania...
0 kapi. 332 Opublikowano 10 sierpnia 2017 Autor Udostępnij Opublikowano 10 sierpnia 2017 Teraz, KrejzolekPRO napisał: Robisz wielki błąd. Nie znasz podstaw a bierzesz się za takie coś... Pooglądaj pierwsze odcinki Kamilkime, a potem analizuj łatwiejsze pluginy. Ale jaki błąd w kodzie mam to było moim pytaniem. Odnośnik do komentarza https://skript.pl/temat/20686-co-zrobi%C5%82em-%C5%BAle/#findComment-140582 Udostępnij na innych stronach Więcej opcji udostępniania...
0 KrejzolekPRO 600 Opublikowano 10 sierpnia 2017 Udostępnij Opublikowano 10 sierpnia 2017 Teraz, esej napisał: Ale jaki błąd w kodzie mam to było moim pytaniem. skąd mam wiedzieć. Odpal serwer i daj logi. Odnośnik do komentarza https://skript.pl/temat/20686-co-zrobi%C5%82em-%C5%BAle/#findComment-140584 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Gość Ewald Opublikowano 10 sierpnia 2017 Udostępnij Opublikowano 10 sierpnia 2017 Ten temat został przeniesiony. Odnośnik do komentarza https://skript.pl/temat/20686-co-zrobi%C5%82em-%C5%BAle/#findComment-140587 Udostępnij na innych stronach Więcej opcji udostępniania...
0 kapi. 332 Opublikowano 11 sierpnia 2017 Autor Udostępnij Opublikowano 11 sierpnia 2017 Dobra do zamknięcia Spoiler zaczynam inny temat Odnośnik do komentarza https://skript.pl/temat/20686-co-zrobi%C5%82em-%C5%BAle/#findComment-140601 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Gość Ewald Opublikowano 11 sierpnia 2017 Udostępnij Opublikowano 11 sierpnia 2017 Ten temat został zamknięty. Odnośnik do komentarza https://skript.pl/temat/20686-co-zrobi%C5%82em-%C5%BAle/#findComment-140652 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
kapi. 332
Póki co na razie wzoruję się na innych pluginach edytuje itp... lecz coś mi tu nie chce działać pomoże ktoś?
@Wizzard? @KrejzolekPRO
Odnośnik do komentarza
https://skript.pl/temat/20686-co-zrobi%C5%82em-%C5%BAle/Udostępnij na innych stronach
6 odpowiedzi na to pytanie
Rekomendowane odpowiedzi