Package com.sk89q.commandbook.events

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


                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

Related Classes of com.sk89q.commandbook.events.OnlineListSendEvent

Copyright © 2018 www.massapicom. 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.