-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSaveConfig.cs
More file actions
31 lines (29 loc) · 947 Bytes
/
SaveConfig.cs
File metadata and controls
31 lines (29 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using Rocket.Core;
using Rocket.API.Collections;
using Rocket.Unturned.Events;
using Rocket.Unturned.Player;
using Rocket.Unturned.Chat;
using Rocket.Core.Plugins;
using Rocket.Core.Logging;
using SDG.Unturned;
using UnityEngine;
using Rocket.API;
using System.Collections.Generic;
using System.Linq;
using System;
namespace Random.miscstuff
{
class savedoordata : IRocketCommand
{
public AllowedCaller AllowedCaller => AllowedCaller.Player;
public string Name => "savedoordata";
public string Help => "saves door data to file";
public string Syntax => "/savedoordata";
public List<string> Aliases => new List<string>();
public List<string> Permissions => new List<string> { "savedoordata" };
public void Execute(IRocketPlayer caller, string[] args) {
miscstuff.Instance.Configuration.Save();
UnturnedChat.Say(caller, "Config saved!");
}
}
}