2021-12-21 04:57:29 +00:00
|
|
|
// This claas was created by JaTiTV
|
|
|
|
|
2022-11-01 12:20:53 +00:00
|
|
|
package net.t2code.commandguiv2.Spigot.listener;
|
2021-12-21 04:57:29 +00:00
|
|
|
|
2022-11-01 12:20:53 +00:00
|
|
|
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;
|
2022-08-10 13:27:27 +00:00
|
|
|
import net.t2code.t2codelib.SPIGOT.api.update.T2CupdateAPI;
|
2021-12-21 04:57:29 +00:00
|
|
|
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 {
|
2022-06-07 04:09:37 +00:00
|
|
|
private static String prefix = Util.getPrefix();
|
2021-12-21 04:57:29 +00:00
|
|
|
|
|
|
|
@EventHandler
|
|
|
|
public void onJoinEvent(PlayerLoginEvent event) {
|
|
|
|
Player player = event.getPlayer();
|
2022-04-20 23:58:54 +00:00
|
|
|
SelectDatabase.nameCheck(player);
|
2022-08-10 13:27:27 +00:00
|
|
|
T2CupdateAPI.join(Main.getPlugin(),prefix, Permissions.updatemsg, event.getPlayer(), Util.getSpigotID(), Util.getDiscord());
|
2021-12-21 04:57:29 +00:00
|
|
|
}
|
|
|
|
}
|