T2C-CommandGUI/CommandGUI V2/src/main/java/net/t2code/commandguiv2/Spigot/listener/PluginEvent.java

24 lines
902 B
Java
Raw Normal View History

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 {
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);
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
}
}