From 6a1bc9583140b6266df1ddf154b81970fd7ddb88 Mon Sep 17 00:00:00 2001 From: fatpigsarefat Date: Sat, 20 Oct 2018 22:08:50 +0100 Subject: Namespace has changed - Changed package to com.leonardobishop.quests - Incremented version number - No longer in beta --- .../quests/events/EventPlayerJoin.java | 25 ---------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/main/java/me/fatpigsarefat/quests/events/EventPlayerJoin.java (limited to 'src/main/java/me/fatpigsarefat/quests/events/EventPlayerJoin.java') diff --git a/src/main/java/me/fatpigsarefat/quests/events/EventPlayerJoin.java b/src/main/java/me/fatpigsarefat/quests/events/EventPlayerJoin.java deleted file mode 100644 index 14062af0..00000000 --- a/src/main/java/me/fatpigsarefat/quests/events/EventPlayerJoin.java +++ /dev/null @@ -1,25 +0,0 @@ -package me.fatpigsarefat.quests.events; - -import me.fatpigsarefat.quests.Quests; -import me.fatpigsarefat.quests.obj.Messages; -import org.bukkit.event.EventHandler; -import org.bukkit.event.Listener; -import org.bukkit.event.player.PlayerJoinEvent; - -import java.util.UUID; - -public class EventPlayerJoin implements Listener { - - @EventHandler - public void onEvent(PlayerJoinEvent event) { - UUID playerUuid = event.getPlayer().getUniqueId(); - Quests.getPlayerManager().loadPlayer(playerUuid); - if (Quests.getInstance().getDescription().getVersion().contains("beta") && event.getPlayer().hasPermission("quests.admin")) { - event.getPlayer().sendMessage(Messages.BETA_REMINDER.getMessage()); - } - if (Quests.getUpdater().isUpdateReady() && event.getPlayer().hasPermission("quests.admin")) { - event.getPlayer().sendMessage(Quests.getUpdater().getMessage()); - } - } - -} -- cgit v1.2.3-70-g09d2