JaTiTV 3051d68de4 0.2.0_DEV
- It is now possible to set whether the key message should be blocked or sent to other players.
- It can now be set whether the response should be sent to the player or to all players. This is also possible across bungees (no MiniMessage format support).
- MiniMessage format is supported. Not if it should be sent to all bungee players!
- TZ2Code minimum requirement 12.5
2022-07-26 00:46:29 +02:00

23 lines
758 B
Java

// This claas was created by JaTiTV
package net.t2code.autoresponse.Spigot.system;
import net.t2code.autoresponse.Spigot.Main;
import net.t2code.autoresponse.Util;
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 JoinEvent implements Listener {
@EventHandler
public void onJoinEvent(PlayerLoginEvent event) {
if (Main.getVersion().toUpperCase().contains("DEV")) {
return;
}
Player player = event.getPlayer();
UpdateAPI.join(Main.getPlugin(), Util.getPrefix(),Permissions.updatemsg,player,Util.getSpigot(), Util.getDiscord());
}
}