Package fr.neatmonster.nocheatplus.config

Examples of fr.neatmonster.nocheatplus.config.ConfigFile


    /** Commands not to be executed in-game.  */
    private final SimpleCharPrefixTree consoleOnlyCommands = new SimpleCharPrefixTree();
   
    public ChatListener(){
      super(CheckType.CHAT);
      ConfigFile config = ConfigManager.getConfigFile();
      initFilters(config);
      // (text inits in constructor.)
    }
View Full Code Here


    }

  @Override
  public void onReload() {
    // Read some things from the global config file.
      ConfigFile config = ConfigManager.getConfigFile();
      initFilters(config);
      text.onReload();
      logins.onReload();
  }
View Full Code Here

    }
  }
 
  private void init() {
    // Set some things from the global config.
    final ConfigFile config = ConfigManager.getConfigFile();
    final NoCheatPlusAPI api = NCPAPIProvider.getNoCheatPlusAPI();
    if (engine != null) {
      engine.clear();
      api.removeComponent(engine);
    }
View Full Code Here

    /** Maximum distance for thunder effects (squared). */
    private final double distSq;

    public SoundDistance(Plugin plugin) {
        super(plugin, PacketType.Play.Server.NAMED_SOUND_EFFECT);
        ConfigFile config = ConfigManager.getConfigFile();
        double dist = config.getDouble(ConfPaths.NET_SOUNDDISTANCE_MAXDISTANCE);
        distSq = dist * dist;
    }
View Full Code Here

  private final float maxPackets;
 
  public FlyingFrequency(Plugin plugin) {
    // PacketPlayInFlying[3, legacy: 10]
    super(plugin, PacketType.Play.Client.FLYING); // TODO: How does POS and POS_LOOK relate/translate?
    ConfigFile config = ConfigManager.getConfigFile();
    seconds = Math.max(1, config.getInt(ConfPaths.NET_FLYINGFREQUENCY_SECONDS));
    maxPackets = Math.max(1, config.getInt(ConfPaths.NET_FLYINGFREQUENCY_MAXPACKETS));
  }
View Full Code Here

TOP

Related Classes of fr.neatmonster.nocheatplus.config.ConfigFile

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.