@EventHandler
    public void onLogin(PlayerJoinEvent event) {
        final Player p = event.getPlayer();
        if (p.hasPermission("modreq.check")) {
            Bukkit.getScheduler().scheduleSyncDelayedTask(plugin,
                    new Runnable() {
                @Override
                public void run() {
                    TicketHandler th = new TicketHandler();
                    int opentickets = th.getOpenTicketsAmount();
                    if (opentickets > 0) {
                        p.sendMessage(ChatColor.GOLD + "[ModReq]" + ModReq.format(ModReq.getInstance().Messages.getString("staff.all.notification"), "", Integer.toString(opentickets),""));
                    }

                }
            }, 60L);
        }
        if (p.hasPermission("modreq.update")) {
            if (plugin.getConfig().getBoolean("check-updates", true)) {
                String currentVersion = plugin.getDescription().getVersion();
                if (plugin.latestVersion != null && currentVersion != null) {
                    if (!plugin.latestVersion.equals(currentVersion)) {
                        p.sendMessage(ChatColor.GOLD
                                + "[ModReq]"
                                + ChatColor.DARK_PURPLE
                                + "A newer version of ModReq is available. If you wish to download this file to the modreq folder do /updatemodreq");
                    }
                }
            }
        }
    }