T2C-CommandGUI/CommandGUI V2/src/main/java/de/jatitv/commandguiv2/Spigot/listener/PluginEvent.java

23 lines
827 B
Java
Raw Normal View History

2021-12-21 04:57:29 +00:00
// This claas was created by JaTiTV
2022-06-06 15:28:43 +00:00
package de.jatitv.commandguiv2.Spigot.listener;
2021-12-21 04:57:29 +00:00
import de.jatitv.commandguiv2.Spigot.Main;
import de.jatitv.commandguiv2.Spigot.database.SelectDatabase;
2022-01-01 02:40:54 +00:00
import de.jatitv.commandguiv2.Util;
2021-12-21 04:57:29 +00:00
import net.t2code.lib.Spigot.Lib.update.UpdateAPI;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerLoginEvent;
public class PluginEvent implements Listener {
private static String prefix = Util.getPrefix();
2021-12-21 04:57:29 +00:00
@EventHandler
public void onJoinEvent(PlayerLoginEvent event) {
Player player = event.getPlayer();
SelectDatabase.nameCheck(player);
UpdateAPI.join(Main.getPlugin(),prefix, "commandgui.updatemsg", event.getPlayer(), Util.getSpigot(), Util.getDiscord());
2021-12-21 04:57:29 +00:00
}
}