InstaServer

Allows you to change the certain features of your server, on the fly. Even saves it into the server.properties for you.

Commands:

  • /insta <sub command> ...

Sub Commands:

  • motd <motd> - instaserver.motd - Changes the server list MOTD
  • maxplayers <players> - instaserver.maxplayers - Sets the max amount of players allowed online
  • flight <true/false> - instaserver.flight - Sets the vanilla allow-flight option
  • pvp <true/false> - instaserver.pvp - Sets player PvP
  • animals <true/false> - instaserver.animals - Allows animals to spawn
  • npcs <true/false> - instaserver.npcs - Allows NPCs to spawn
  • online <true/false> - instaserver.online - Changes online mode

Developer API:

Get an instance of InstaServer, and now you can use the following methods:

  • public MinecraftServer getMinecraftServer(); Get instance of MinecraftServer
  • public Properties getProps(); Get instance of server.properties
  • public String getPropsPath(); Get String path to server.properties, for use with getDataFolder()

The below don't save to server.properties, either do that yourself or your changes won't be saved over restarts.

  • public void setMaxPlayers(int players); Set the max players
  • public void setMotd(String motd); Set the MOTD
  • public void setOnlineMode(boolean enable); Set online/offline mode
  • public void setPvp(boolean enable); Set PvP
  • public void setNpcs(boolean enable); Set NPC spawning
  • public void setAnimals(boolean enable); Set animal spawning
  • public void setFlight(boolean enable); Allow/disallow vanilla flight

Usage video:


Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files