Package net.minecraft.server.management

Examples of net.minecraft.server.management.ServerConfigurationManager


    }

    @Override
    public Collection<Actor> getConnectedUsers() {
        List<Actor> users = new ArrayList<Actor>();
        ServerConfigurationManager scm = server.getConfigurationManager();
        for (String name : scm.getAllUsernames()) {
            EntityPlayerMP entity = scm.func_152612_a(name);
            if (entity != null) {
                users.add(new ForgePlayer(this, entity));
            }
        }
        return users;
View Full Code Here


            return null;
        }
        @Override
        public Set<String> checkPlayerPermissions(String player, Set<String> perms)
        {
            ServerConfigurationManager scm = MinecraftServer.getServer().getConfigurationManager();
            if (scm == null) return Collections.emptySet();
            UserListBans bl = scm.func_152608_h();
            if (bl == null) return Collections.emptySet();
            if(bl.func_152703_a(player) != null) {
                return Collections.emptySet();
            }
            Set<String> rslt = hasOfflinePermissions(player, perms);
View Full Code Here

            return rslt;
        }
        @Override
        public boolean checkPlayerPermission(String player, String perm)
        {
            ServerConfigurationManager scm = MinecraftServer.getServer().getConfigurationManager();
            if (scm == null) return false;
            UserListBans bl = scm.func_152608_h();
            if (bl == null) return false;
            if(bl.func_152703_a(player) != null) {
                return false;
            }
            return hasOfflinePermission(player, perm);
View Full Code Here

            }
            else
            {
                OutputHandler.sendMessage(server, "[ForgeEssentials] " + msg);
            }
            ServerConfigurationManager manager = server.getConfigurationManager();
            for (String username : manager.getAllUsernames())
            {
                EntityPlayerMP player = manager.func_152612_a(username);
                if (PermissionsManager.checkPermission(player, "ForgeEssentials.backup.msg"))
                {
                    OutputHandler.chatNotification(player, "[ForgeEssentials] " + msg);
                }
            }
View Full Code Here

    Log.warning("Admin notify: " + message);
    sendToAdmins(message);
  }

  private static void sendToAdmins(String message) {
    ServerConfigurationManager serverConfigurationManager = MinecraftServer.getServer().getConfigurationManager();
    serverConfigurationManager.playerUpdateLock.lock();
    try {
      for (Object aPlayerEntityList : MinecraftServer.getServer().getConfigurationManager().playerEntityList) {
        EntityPlayerMP var7 = (EntityPlayerMP) aPlayerEntityList;
View Full Code Here

        return 40;
    }

    @Override
    public int getRedstoneValue(World world, int x, int y, int z, int sensorRange, String textBoxText){
        ServerConfigurationManager serverManager = FMLCommonHandler.instance().getMinecraftServerInstance().getConfigurationManager();
        if(textBoxText.equals("")) {
            return Math.min(15, serverManager.playerEntityList.size());
        } else {
            String[] userNames = serverManager.getAllUsernames();
            for(String userName : userNames) {
                if(userName.equalsIgnoreCase(textBoxText)) return 15;
            }
            return 0;
        }
View Full Code Here

TOP

Related Classes of net.minecraft.server.management.ServerConfigurationManager

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.