/gc without Essentials?

Discussion in 'Bukkit Help' started by FastLizard4, Nov 4, 2013.

Thread Status:
Not open for further replies.
  1. Offline


    I'm looking for some way to add the /gc command to my Bukkit servers. Although I'm sure Essentials is great, I don't want to install it because it's rather bloated - virtually all the functionality it provides (aside from the /gc command) is either not wanted or already provided by another plugin, and I can't figure out any (nice) way to disable everything (literally everything, right down to the silly "[INFO] To view help from the console, type ?.") except the /gc command.

    So, my question is this: Is there a plugin that provides an Essentials-like /gc command (preferably with output like the Essentials /gc command) without everything else, or at least some way of disabling everything except /gc (even if it's a patch)?

    And, to any Essentials devs that happen across this: I humbly propose that you follow WorldGuard's example and disable all functionality by default and let admins enable (by the config file) only the things they want. And not disable as in deny the permission, but to actually not make any modifications to the server at all except for specific features enabled in the config file.
  2. Offline


    I've found a few plugins that might be of use:
    1. MemoryChecker - Looks like this would probably be your best bet
    2. RamChecker - Not sure how well this would do
  3. Offline


    Hmm, I'll take a look at those when I next have a moment. I tried installing NoLagg, but, ironically, installing it started causing java.lang.OutOfMemory exceptions (though this very well could be my fault/Java's fault; still trying to figure out the exact cause of the exceptions).

    Note that one of the things I'm looking for is also reporting of things like entity counts and memory statistics, as I'm trying to implement some Munin statistics plugins to track these sorts of things.
  4. Offline


    That is how it works like now.
    Commands are not loaded unless they are used.
    There are almost no no-command functions in the core essentials.jar.
    The message "[INFO] To view help from the console, type ?." is vanila and not essentials.
  5. Offline


    I'm not sure what you mean by "commands are not loaded unless they are used". But take the Essentials Economy system, for example. I went through the config file line-by-line, but I never saw an option that would explicitly disable the Economy system (something that there is no need for on my servers).

    As for a no-command function, Essentials appears to change the appearance of a "/me" on the server console. By default, it appears as "* CONSOLE", but with Essentials installed it becomes "* @". This is, of course, minor; the only problem it might cause for me is people confusing command block output with information from the scripts that occasionally write to the console. But it is another example of Essentials changing behavior (in a seemingly undocumented fashion) from the default implementation and without configuration.

    Untrue. Fist, I tested in a CraftBukkit git-Bukkit-1.6.4-R2.0-1-g988f599-b2919jnks blank install - that is, just plopped craftbukkit.jar into an empty folder, ran it, changed the port assignment in server.properties so as to not conflict with my already-running servers, and ran it again and entered the "help" command:

    >09:17:09 [INFO] Done (17.678s)! For help, type "help" or "?"
    09:17:14 [INFO] --------- Help: Index ---------------------------
    09:17:14 [INFO] Use /help [n] to get page n of help.
    09:17:14 [INFO] Aliases: Lists command aliases
    Then I downloaded the vanilla minecraft_server.1.7.2.jar off of Mojang's website, and tried that:
    [09:22:38] [Server thread/INFO]: Done (10.001s)! For help, type "help" or "?"
    [09:22:41] [Server thread/INFO]: --- Showing help page 1 of 7 (/help <page>) ---
    [09:22:41] [Server thread/INFO]: /achievement give <stat_name> [player]

    Then I checked one of my server.log files for a server that first started as a vanilla 1.5.2 server:
    2013-06-17 05:34:23 [INFO] Starting minecraft server version 1.5.2
    2013-06-17 05:34:30 [INFO] Done (6.510s)! For help, type "help" or "?"
    So, this may have been vanilla behavior, but certainly not after 17 June 2013. :)
  6. Offline


    FastLizard4 oh, you mean the result of the /help command it self.
    Essentials overrides a few vanilla commands for essentials own increased functionality (or sometimes, vanilla commands that get released after Essentials), the changes in vanilla functions basically mostly consist of messages recoloring.
    You can add the commands to disabled-commands in essentials config.yml to restore vanilla commands.
    As for eco, that only does anything if you actually grant economy command/sign permissions or use other eco plugins, and will not harm performance otherwise.

    As for the question in topic, ive seen http://dev.bukkit.org/bukkit-plugins/lagmeter/ being used as a /gc replacement at times, though i dont know of any gc-related plugins that actually track entity info.

    Although, id look into /help.
  7. Offline


    Yup, LagMeter does the trick! It also does chunk and entity counts, so it suits my purposes perfectly. Thanks!
Thread Status:
Not open for further replies.

Share This Page