command, instance of the command to be unregistered.command, instance of the command to be registered. LiquidBounces script API is based on Nashorn, an ECMAScript (in the following referred to as JavaScript) engine written entirely in Java.Registers the given command instance with the CommandManager. If a command with the given name is not found, null is returned. Returns an instance of Command with the given name. command, string containing the command to be executed.Įxample: commandManager.executeCommands(".killaura range 3.4") commandManager.getCommand(name).Method summary commandManager.executeCommands(command) Again, only the most important methods are listed here, all of them can be viewed here. For this reason, similar methods are also defined on it. Similar to the ModuleManager, the CommandManager takes over the task of managing commands. module, instance of the module to be unregistered.module, instance of the module to be registered.Usually the script API does this automatically. Registers the given module instance with the ModuleManager. Returns a List of all registered modules. ModuleManager.getModule("Scaffold").getValue("AutoBlock").get() moduleManager.getModule() Getting the value of a setting defined on another module ModuleManager.getModule("KillAura").getValue("Range").set(3.4) If a module with the given name is not found, null is returned.Įxample: // Changing the value of a setting defined on another module Returns the instance of Module with the given name. Method summary moduleManager.getModule(name) Therefore, in many cases it is highly recommended to add configuration options to the module, which the user can adjust according to his needs. To view all methods, please refer to the source code of the class on Github. Often a module must be adapted to different situations. Only the most important methods are listed here. Furthermore it is possible to retrieve instances of modules to be able to perform further actions on them. With it new modules can be registered and already existing ones can be unregistered. The ModuleManager is, as the name suggests, responsible for managing all registered modules. Instead of listing all available methods and fields here, we refer to the Minecraft JavaDocs, which can also be found online here. It can be used to do almost any manipulation desired to the game. autosettings load hypixel to apply the current Hypixel configuration.Mc contains the Minecraft instance ( Minecraft.getMinecraft()) It is the most important instance in every script. is a placeholder for the name of an available configuration that you know exists based on the previous command.Īn example of using this command would be. With this command you can now actually load and apply a pre-made configuration. When you execute this command, you will obtain a list of available configurations, which you can subsequently load using their respective names. The AutoSettings command has two sub-commands, which are explained tosettings list As a little reminder, you can execute client commands by typing them in the chat. The command to load settings from our repository is called. How you can use it, you will find out here. To access the configurations stored there, the client has a special command. ![]() How to load settings from the official repositoryĪs mentioned above, there is an official repository where AutoSettings for a variety of large and small servers are made available for free to the entire community. You can also upload locally saved AutoSettings you created to the aforementioned repository to share them with the community. There are two different types of AutoSettings: those that you have saved locally on your hard disk and those that you can load from our public repository containing settings for many large servers. For example, if you have spent time configuring each module to bypass on a particular server, you can simply save the current configuration so that you can easily reload it the next time you play on the server. ![]() With the help of AutoSettings you can save a specific configuration and reload it later without having to manually adjust all settings again. Contribute to this page on GitHub AutoSettings
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |