Class WorldCommand
- Namespace
- McServerLauncher.Services
- Assembly
- McServerLauncher.dll
Whether a command typed into the console can change the world's files.
public static class WorldCommand
- Inheritance
-
WorldCommand
- Inherited Members
Remarks
A server that ran with nobody on it does not need its world backed up again on the way down —
unless somebody changed it from the console: a /fill, a /time set, a plugin's
command. Typing list to see who is on is not that, and should not cost a backup.
So the list here is of what is known not to touch the world — talking, looking, and the bans, ops and whitelist, which live in the server folder rather than in the world. Everything else counts, including any command this app has never heard of: a plugin's command can do anything, and a copy too many is cheaper than a change left out of the backups.
Methods
Touches(string)
True when command may have changed the world, as far as can be told.
public static bool Touches(string command)
Parameters
commandstring