Examples of OnlineListSendEvent


Examples of com.sk89q.commandbook.events.OnlineListSendEvent

    @EventHandler(priority = EventPriority.HIGH)
    public void onPlayerJoin(PlayerJoinEvent event) {
        if (!config.listOnJoin) return;
        Player player = event.getPlayer();
        CommandBook.callEvent(new OnlineListSendEvent(player));

        sendOnlineList(
                CommandBook.server().getOnlinePlayers(), player);
    }
View Full Code Here

Examples of com.sk89q.commandbook.events.OnlineListSendEvent

                sender.sendMessage(out.toString());

                return;
            }

            CommandBook.callEvent(new OnlineListSendEvent(sender));

            // This applies mostly to the console, so there might be 0 players
            // online if that's the case!
            if (online.isEmpty()) {
                sender.sendMessage("0 players are online.");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.