Ever 20 Opublikowano 14 stycznia 2018 Udostępnij Opublikowano 14 stycznia 2018 Pomocy z pluginem , ucze sie dopiero pisac od dzisiaj od 15. A w plugin.yml jjest name, version, main i tylko package me.hotangel2k17.lobby; import org.bukkit.event.EventHandler; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.plugin.java.JavaPlugin; public class Main extends JavaPlugin{ @Override public void onEnable(){ System.out.println("Wlaczanie..."); } @Override public void onDisable(){ System.out.println("Wylaczanie..."); } @EventHandler public void onJoin(PlayerJoinEvent e){ int i = 0; while(i < 101){ e.getPlayer().sendMessage(" "); i++; } e.getPlayer().sendMessage("Test"); } } Odnośnik do komentarza https://skript.pl/temat/24534-co-tu-jest-zle/ Udostępnij na innych stronach Więcej opcji udostępniania...
0 bvcz 444 Opublikowano 14 stycznia 2018 Udostępnij Opublikowano 14 stycznia 2018 (edytowane) Podaj błędy(a najlepiej cały log) #edit Nie dodajesz eventu przy włączaniu pluginu Edytowane 14 stycznia 2018 przez bvcz Odnośnik do komentarza https://skript.pl/temat/24534-co-tu-jest-zle/#findComment-164205 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Ever 20 Opublikowano 14 stycznia 2018 Autor Udostępnij Opublikowano 14 stycznia 2018 poprawilbys? jestem w tym zielony. A zaraz podam logi Odnośnik do komentarza https://skript.pl/temat/24534-co-tu-jest-zle/#findComment-164206 Udostępnij na innych stronach Więcej opcji udostępniania...
0 bvcz 444 Opublikowano 14 stycznia 2018 Udostępnij Opublikowano 14 stycznia 2018 (edytowane) @Override public void onEnable(){ System.out.println("Wlaczanie..."); getServer().getPluginManager().registerEvents(this, this); } Edytowane 14 stycznia 2018 przez bvcz Odnośnik do komentarza https://skript.pl/temat/24534-co-tu-jest-zle/#findComment-164207 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Ever 20 Opublikowano 14 stycznia 2018 Autor Udostępnij Opublikowano 14 stycznia 2018 [18:59:16] [Server thread/INFO]: [LobbuJoin1] Enabling LobbuJoin1 v1.0 [18:59:16] [Server thread/INFO]: Wlaczanie... [18:59:16] [Server thread/INFO]: [FBTitle] Enabling FBTitle v1.0 [18:59:16] [Server thread/INFO]: [WorldGuard] Enabling WorldGuard v6.1.3-SNAPSHOT;c904242 [18:59:16] [Server thread/INFO]: [WorldGuard] (world) TNT ignition is PERMITTED. [18:59:16] [Server thread/INFO]: [WorldGuard] (world) Lighters are PERMITTED. [18:59:16] [Server thread/INFO]: [WorldGuard] (world) Lava fire is blocked. [18:59:16] [Server thread/INFO]: [WorldGuard] (world) Fire spread is UNRESTRICTED. [18:59:16] [Server thread/INFO]: [WorldGuard] Loaded configuration for world 'world' [18:59:16] [Server thread/INFO]: [WorldGuard] (world_nether) TNT ignition is PERMITTED. [18:59:16] [Server thread/INFO]: [WorldGuard] (world_nether) Lighters are PERMITTED. [18:59:16] [Server thread/INFO]: [WorldGuard] (world_nether) Lava fire is blocked. [18:59:16] [Server thread/INFO]: [WorldGuard] (world_nether) Fire spread is UNRESTRICTED. [18:59:16] [Server thread/INFO]: [WorldGuard] Loaded configuration for world 'world_nether' [18:59:16] [Server thread/INFO]: [WorldGuard] (world_the_end) TNT ignition is PERMITTED. [18:59:16] [Server thread/INFO]: [WorldGuard] (world_the_end) Lighters are PERMITTED. [18:59:16] [Server thread/INFO]: [WorldGuard] (world_the_end) Lava fire is blocked. [18:59:16] [Server thread/INFO]: [WorldGuard] (world_the_end) Fire spread is UNRESTRICTED. [18:59:16] [Server thread/INFO]: [WorldGuard] Loaded configuration for world 'world_the_end' [18:59:16] [Server thread/INFO]: [WorldGuard] Loading region data... [18:59:16] [Server thread/INFO]: [BungeePortals] Enabling BungeePortals v1.2 [18:59:16] [Server thread/INFO]: [BungeePortals] Metrics initiated! [18:59:16] [Server thread/INFO]: [BungeePortals] Commands registered! [18:59:16] [Server thread/INFO]: [BungeePortals] Events registered! [18:59:16] [Server thread/INFO]: [BungeePortals] Plugin channel registered! [18:59:16] [Server thread/INFO]: [BungeePortals] Configuration file config.yml loaded! [18:59:16] [Server thread/INFO]: [BungeePortals] Configuration file portals.yml loaded! [18:59:16] [Server thread/INFO]: [BungeePortals] Portal data loaded! (0ms) [18:59:16] [Server thread/INFO]: [BungeePortals] Save task started! [18:59:16] [Server thread/INFO]: [BungeePortals] Version 1.2 has been enabled. (4ms) [18:59:16] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it [18:59:16] [Server thread/INFO]: HotAngel2K17: Reload complete. [18:59:17] [Server thread/INFO]: HotAngel2K17 lost connection: Disconnected [18:59:17] [Server thread/INFO]: HotAngel2K17 left the game. [18:59:19] [Thread-30/INFO]: UUID of player HotAngel2K17 is b4e46abb-6b3b-3f5b-94e6-d3c9fe173bef [18:59:19] [Server thread/INFO]: HotAngel2K17[/145.239.134.16:34355] logged in with entity id 418 at ([world]-516.01383899795, 65.0, -502.75489214684507) [18:59:23] [Craft Scheduler Thread - 9/INFO]: [AuthMe] HotAngel2K17 logged in! Dziekuje ze znajduja sie tutaj takie mile osoby. Do zamkniecia Dziala Odnośnik do komentarza https://skript.pl/temat/24534-co-tu-jest-zle/#findComment-164208 Udostępnij na innych stronach Więcej opcji udostępniania...
0 bopke 360 Opublikowano 14 stycznia 2018 Udostępnij Opublikowano 14 stycznia 2018 Ten temat został przeniesiony. Odnośnik do komentarza https://skript.pl/temat/24534-co-tu-jest-zle/#findComment-164213 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Ixidi 719 Opublikowano 15 stycznia 2018 Udostępnij Opublikowano 15 stycznia 2018 Problem został rozwiązany. Odnośnik do komentarza https://skript.pl/temat/24534-co-tu-jest-zle/#findComment-164278 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
Ever 20
Pomocy z pluginem
, ucze sie dopiero pisac od dzisiaj od 15. A w plugin.yml jjest name, version, main i tylko
package me.hotangel2k17.lobby; import org.bukkit.event.EventHandler; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.plugin.java.JavaPlugin; public class Main extends JavaPlugin{ @Override public void onEnable(){ System.out.println("Wlaczanie..."); } @Override public void onDisable(){ System.out.println("Wylaczanie..."); } @EventHandler public void onJoin(PlayerJoinEvent e){ int i = 0; while(i < 101){ e.getPlayer().sendMessage(" "); i++; } e.getPlayer().sendMessage("Test"); } }Odnośnik do komentarza
https://skript.pl/temat/24534-co-tu-jest-zle/Udostępnij na innych stronach
6 odpowiedzi na to pytanie
Rekomendowane odpowiedzi