24 lines
902 B
Java
24 lines
902 B
Java
// This claas was created by JaTiTV
|
|
|
|
package net.t2code.commandguiv2.Spigot.listener;
|
|
|
|
import net.t2code.commandguiv2.Spigot.Main;
|
|
import net.t2code.commandguiv2.Spigot.database.SelectDatabase;
|
|
import net.t2code.commandguiv2.Spigot.system.Permissions;
|
|
import net.t2code.commandguiv2.Util;
|
|
import net.t2code.t2codelib.SPIGOT.api.update.T2CupdateAPI;
|
|
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();
|
|
|
|
@EventHandler
|
|
public void onJoinEvent(PlayerLoginEvent event) {
|
|
Player player = event.getPlayer();
|
|
SelectDatabase.nameCheck(player);
|
|
T2CupdateAPI.join(Main.getPlugin(),prefix, Permissions.updatemsg, event.getPlayer(), Util.getSpigotID(), Util.getDiscord());
|
|
}
|
|
} |