I have written a lobby system plugin and it is not recognized by the server. What could be the reason for this? There are no errors displayed in the plugin.
I'm programming in the Minecraft version: 1.12.2
Code please
Which I have many pages
Plugin.yml wrong?
Here is the plugin.yml:
name: LobbySystem
author: DoGame5
version: 0.0.1
main: en.dogame5.lobbysystem.main
commands:
server:
description: server
usage: server
I think that's right because I usually copy only of the others anyway and there it works too?
Seems to be right. You can even send the code from the Main class.
Otherwise try between the command server 4 spaces and description and usage 8
Main:
package en.dogame5.lobbysystem.main;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.plugin.java.JavaPlugin;
import de.dogame5.lobbysystem.listener.PlayerJoin;
import de.dogame5.lobbysystem.servertp.TeleportBetweenServer;
public class Main extends JavaPlugin {
public static String prefix = "§8 [§1Lobby System§8]";
public static String err_need_player = "You can only use the command as a player!";
public static String err_need_arguments = "§cPlease use only: §6";
public static String err_need_permissions = "§7Dir are missing the following permissions to use this command: §4";
@Override
public void onEnable () {
System.out.println (Main.prefix + "The plugin became §2Activated");
getCommand ("server"). SetExecutor (new TeleportBetweenServer ());
getServer (). GetPluginManager (). RegisterEvents (new PlayerJoin (), this);
}
@EventHandler
public void onDisable () {
System.out.println (Main.prefix + "§aThe plugin became §4Disable");
}
public static void sendTabTitle (Player p, String header, String footer) {
if (header == null) header = "DeinServer.net";
if (footer == null) footer = "DeinServer.net";
}
}
Change @EventHandler to @Override
Have och made but still not recognized
You have to write in the plugin.yml main: de.dogame5.lobbysystem.main.Main, have just seen sorry
OMG how stupid am I I'll try it again I'll get in touch if it works
Thank you very much. It works you are just the best: - *
Do you still have a problem?
No thanks