Package com.forgeessentials.servervote

Examples of com.forgeessentials.servervote.VoteEvent


                position += address.length() + 1;
                String timeStamp = readString(block, position);
                position += timeStamp.length() + 1;

                // Create the vote.
                VoteEvent vote = new VoteEvent(username, serviceName, address, timeStamp);

                ModuleServerVote.log(vote);

                EntityPlayerMP player = MinecraftServer.getServer().getConfigurationManager().func_152612_a(vote.player);
                if (player == null)
                {
                    if (!ConfigServerVote.allowOfflineVotes)
                    {
                        OutputHandler.felog.finer("Player for vote not online, vote canceled.");
                        vote.setFeedback("notOnline");
                        vote.setCanceled(true);
                        return;
                    }
                    else
                    {
                      MinecraftForge.EVENT_BUS.post(vote);
View Full Code Here

TOP

Related Classes of com.forgeessentials.servervote.VoteEvent

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.