global.conf

Global Configuration

The global.conf file contains the global configuration settings for Sponge. This file is created in the config/sponge directory in your server folder. Many of these properties can be also overridden per-world or per-dimension type by using the config files in the subfolders of config/worlds.

Below is a complete global.conf file with all possible nodes that may be present on a server. Note that certain sections will not be present immediately, and will be added to the file when the server encounters them. This config was generated using SpongeForge build 1181, SpongeAPI version 3.1.0:

# 1.0
#
# # If you need help with the configuration or have any questions related
# # to Sponge, join us at the IRC or drop by our forums and leave a post.
#
# # IRC: #sponge @ irc.esper.net ( http://webchat.esper.net/?channel=sponge )
# # Forums: https://forums.spongepowered.org/
#

sponge {
    block-tracking {
        # Add block ids you wish to blacklist for player block placement tracking.
        block-blacklist=[]
        # If enabled, adds player tracking support for block positions. Note: This should only be disabled if you do not care who caused a block to change.
        enabled=true
    }
    bungeecord {
        # If enabled, allows BungeeCord to forward IP address, UUID, and Game Profile to this server
        ip-forwarding=false
    }
    commands {
        # A mapping from unqualified command alias to plugin id of the plugin that should handle a certain command
        aliases {}
    }
    debug {
        # Dump chunks in the event of a deadlock
        dump-chunks-on-deadlock=false
        # Dump the heap in the event of a deadlock
        dump-heap-on-deadlock=false
        # Dump the server thread on deadlock warning
        dump-threads-on-warn=false
        # Enable Java's thread contention monitoring for thread dumps
        thread-contention-monitoring=false
    }
    entity {
        # Number of colliding entities in one spot before logging a warning. Set to 0 to disable
        collision-warn-size=200
        # Number of entities in one dimension before logging a warning. Set to 0 to disable
        count-warn-size=0
        # Number of ticks before a painting is respawned on clients when their art is changed
        entity-painting-respawn-delay=2
        # Number of ticks before the fake player entry of a human is removed from the tab list (range of 0 to 100 ticks).
        human-player-list-remove-delay=10
        # Controls the time in ticks for when an item despawns.
        item-despawn-rate=6000
        # Max size of an entity's bounding box before removing it. Set to 0 to disable
        max-bounding-box-size=1000
        # Square of the max speed of an entity before removing it. Set to 0 to disable
        max-speed=100
    }
    entity-activation-range {
        ambient-activation-range=32
        aquatic-activation-range=32
        creature-activation-range=32
        minecraft {
            ambient {
                bat=true
            }
            aquatic {
                squid=true
            }
            creature {
                chicken=true
                cow=true
                entityhorse=true
                mushroomcow=true
                ocelot=true
                pig=true
                rabbit=true
                sheep=true
                wolf=true
            }
            enabled=true
            misc {
                armorstand=true
                arrow=true
                boat=true
                fallingsand=true
                item=true
                itemframe=true
                leashknot=true
                minecartchest=true
                minecartfurnace=true
                minecarthopper=true
                minecartrideable=true
                minecarttnt=true
                villager=true
                villagergolem=true
                xporb=true
            }
            monster {
                blaze=true
                cavespider=true
                creeper=true
                enderman=true
                endermite=true
                ghast=true
                giant=true
                guardian=true
                lavaslime=true
                pigzombie=true
                silverfish=true
                skeleton=true
                slime=true
                snowman=true
                spider=true
                witch=true
                zombie=true
            }
        }
        misc-activation-range=16
        monster-activation-range=32
    }
    exploits {
        prevent-creative-itemstack-name-exploit=true
        prevent-sign-command-exploit=true
    }
    general {
        # Forces Chunk Loading on provide requests (speedup for mods that don't check if a chunk is loaded)
        chunk-load-override=false
        # Disable warning messages to server admins
        disable-warnings=false
    }
    ip-sets {}
    logging {
        # Log when blocks are broken
        block-break=false
        # Log when blocks are modified
        block-modify=false
        # Log when blocks are placed
        block-place=false
        # Log when blocks are populated in a chunk
        block-populate=false
        # Log when blocks are placed by players and tracked
        block-tracking=false
        # Log when chunks are loaded
        chunk-load=false
        # Log when chunks are unloaded
        chunk-unload=false
        # Whether to log entity collision/count checks
        entity-collision-checks=false
        # Log when living entities are destroyed
        entity-death=false
        # Log when living entities are despawned
        entity-despawn=false
        # Log when living entities are spawned
        entity-spawn=false
        # Whether to log entity removals due to speed
        entity-speed-removal=false
        # Log when server receives exploited packet with itemstack name exceeding string limit.
        exploit-itemstack-name-overflow=false
        # Log when player attempts to respawn invisible to surrounding players.
        exploit-respawn-invisibility=false
        # Log when server receives exploited packet to update a sign containing commands from player with no permission.
        exploit-sign-command-updates=false
        # Add stack traces to dev logging
        log-stacktraces=false
    }
    modules {
        bungeecord=false
        entity-activation-range=true
        exploits=true
        timings=true
    }
    # Configuration options related to the Sql service, including connection aliases etc
    sql {
        # Aliases for SQL connections, in the format jdbc:protocol://[username[:password]@]host/database
        aliases {}
    }
    timings {
        enabled=true
        hidden-config-entries=[
            "sponge.sql"
        ]
        history-interval=300
        history-length=3600
        server-name-privacy=false
        verbose=false
    }
    world {
        # Lava behaves like vanilla water when source block is removed
        flowing-lava-decay=false
        # Enable if you want the world to generate spawn the moment its loaded.
        generate-spawn-on-load=true
        # Vanilla water source behavior - is infinite
        infinite-water-source=false
        # Enable if this world's spawn should remain loaded with no players.
        keep-spawn-loaded=true
        # Enable if this world should load on startup.
        load-on-startup=true
        # Enable if this world allows PVP combat.
        pvp-enabled=true
        # Enable if this world should be allowed to load.
        world-enabled=true
    }
}

Global Properties of Sponge

Property Type Default Description
Block Tracking      
block-blacklist string null Adds block ids you wish to blacklist for player block placement tracking.
enabled boolean true Adds player tracking support for block positions.
Bungeecord      
ip-forwarding boolean false Allows bungeecord to forward ip address, UUID, and Game Profile to the server.
Commands      
aliases string null

Alias will resolve conflicts when multiple plugins request a specific command. Correct syntax is <unqualified command>=<plugin name> Example:

aliases = {
    title=myPlugin
}
Debug Options      
dump-chunks-on-deadlock boolean false Dumps chunks in the event of a deadlock.
dump-heap-on-deadlock boolean false Dump the heap in the event of a deadlock.
dump-threads-on-warn boolean false Dump the server thread on deadlock warning.
thread-contention-monitoring boolean false Enable Java’s thread contention monitoring for thread dumps.
Entity Options      
collision-warn-size integer 200 Number of colliding entities in one spot before logging a warning. Set to 0 to disable.
count-warn-size integer 0 Number of entities allowed in one dimension before logging a warning. Set to 0 to disable.
entity-painting-respawn-delay integer 2 Number of ticks before a painting is respawned on the client when their art is changed.
human-player-list-remove-delay integer 10 Number of ticks before the fake player entry of a human is removed from the tab list. The allowed range is 0 - 100.
item-despawn-rate integer 6000 The time in ticks before an item despawns.
max-bounding-box-size integer 1000 Maximum size of an entity’s bounding box before it is removed. Set to 0 to disable.
max-speed integer 100 Square of the maximum speed of an entity before it is removed. Set to 0 to disable
Entity Activation Range     Note that entities from Mods are automatically added to this list.
ambient-activation-range integer 32 Range where ambient entities become active.
aquatic-activation-range integer 32 Range where aquatic entities become active.
creature-activation-range integer 32 Range where creatures become active.
Minecraft Creatures      
ambient (bat) boolean true Use activation range on bats.
aquatic (squid) boolean true Use activation range on squid.
creature <creature> boolean true Use activation range on <creature>. Permitted values: chicken, cow, entityhorse, mushroomcow, ocelot, pig, rabbit, sheep, wolf.
enabled boolean true Enable activation range on Minecraft entities.
Miscellaneous Entities      
misc <entity> boolean true Use activation range on <entity>. Permitted values: armorstand, arrow, boat, fallingsand, item, itemframe, leashknot, minecartchest, minecartfurnace, minecarthopper, minecartrideable, minecarttnt, villager, villagergolem, xporb.
Minecraft Monsters      
monster <monster> boolean true Use activation range on <monster>. Permitted values: blaze, cavespider, creeper, enderman, endermite, ghast, giant, guardian, lavaslime, pigzombie, silverfish, skeleton, slime, snowman, spider, witch, zombie.
misc-activation-range integer 16 Range where misc entities become active.
monster-activation-range integer 32 Range where monsters are activated.
Exploits      
prevent-creative-itemstack-name-exploit boolean true Prevents an exploit in which the client sends a packet with the itemstack name exceeding the string limit.
prevent-sign-command-exploit boolean true Prevents an exploit in which the client sends a packet to update a sign containing commands from a player without permission.
General Settings      
chunk-load-override boolean false Forces chunk loading on provide requests. This is a speed-up for mods that don’t check if a chunk is loaded.
disable-warnings boolean false Disable warning messages to server Admins.
Ip Sets      
     
Logging Options      
block-break boolean false Logs when a block is broken.
block-modify boolean false Logs when blocks are modified.
block-place boolean false Logs when blocks are placed.
block-populate boolean false Logs when blocks are populated in a chunk.
block-tracking boolean false Logs when blocks are placed by players and tracked.
chunk-load boolean false Log when chunks are loaded.
chunk-unload boolean false Log when chunks are unloaded.
entity-collision-checks boolean false Whether to log entity collision/count checks.
entity-death boolean false Log when living entities are destroyed.
entity-despawn boolean false Log when living entities are despawned.
entity-spawn boolean false Log when living entities are spawned.
entity-speed-removal boolean false Whether to log entity removals due to speed.
exploit-itemstack-name-overflow boolean false Logs when a server receives exploited packets with itemstack name exceeding string limit.
exploit-respawn-invisibility boolean false Logs when a player attempts to respawn invisible to surrounding players.
exploit-sign-command-updates boolean false Logs when a server receives an exploited packet containing commands from a player with no permission.
log-stacktraces boolean false Add stack traces to dev logging.
Modules      
bungeecord boolean false Enables bungeecord support.
entity-activation-range boolean true Enables the entity activation range settings.
exploits boolean true Enables the exploit prevention module.
timings boolean true Enables timing settings.
SQL      
aliases string null Aliases for SQL connections. This is done in the format jdbc:protocol://[username[:password]@]host/database
Timings      
enabled boolean true If timings are enabled.
hidden-config-entries string sponge.sql The hidden config entries.
history-interval integer 300 The interval between timing history report generation.
history-length integer 3600 How long, in ticks, that the timing history will be kept for the server.
server-name-privacy boolean false Whether to include information such as the server name, motd, online-mode, and server icon in the report.
verbose boolean false Whether or not for timings to monitor at the verbose level.
World Settings      
flowing-lava-decay boolean false Lava behaves like vanilla water when the source block is removed, when set to true.
generate-spawn-on-load boolean true If the world should generate spawn when the world is loaded.
infinite-water-source boolean false False = Default vanilla water source behaviour.
keep-spawn-loaded boolean true If the spawn should stay loaded with no players.
load-on-startup boolean true If the world should load on startup.
pvp-enabled boolean true If the would allows PVP combat.
world-enabled boolean true Enable if this world should be allowed to load.