first commit
This commit is contained in:
18
NitroxServer/ConsoleCommands/BackupCommand.cs
Normal file
18
NitroxServer/ConsoleCommands/BackupCommand.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using NitroxModel.DataStructures.GameLogic;
|
||||
using NitroxServer.ConsoleCommands.Abstract;
|
||||
|
||||
namespace NitroxServer.ConsoleCommands
|
||||
{
|
||||
internal class BackupCommand : Command
|
||||
{
|
||||
public BackupCommand() : base("backup", Perms.ADMIN, "Creates a backup of the save")
|
||||
{
|
||||
}
|
||||
|
||||
protected override void Execute(CallArgs args)
|
||||
{
|
||||
Server.Instance.BackUp();
|
||||
SendMessageToPlayer(args.Sender, "World has been backed up");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user