My spigot plugin is not recognized?

Yi
- in Plugins
15

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

ab

Code please

Yi

Which I have many pages

Jo

Plugin.yml wrong?

Yi

Here is the plugin.yml:

name: LobbySystem
author: DoGame5
version: 0.0.1
main: en.dogame5.lobbysystem.main
commands:
server:
description: server
usage: server

Yi

I think that's right because I usually copy only of the others anyway and there it works too?

Jo

Seems to be right. You can even send the code from the Main class.

Jo

Otherwise try between the command server 4 spaces and description and usage 8

Yi

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";
}
}

Jo

Change @EventHandler to @Override

Yi

Have och made but still not recognized

Jo

You have to write in the plugin.yml main: de.dogame5.lobbysystem.main.Main, have just seen sorry

Yi

OMG how stupid am I I'll try it again I'll get in touch if it works

Yi

Thank you very much. It works you are just the best: - *

Co

Do you still have a problem?

Yi

No thanks