Code:class WipeCycle: def __init__(self): self.Title = "WypeCycle" self.Description = "This example illustrates how to use a basic configuration file" self.Author = "NoSharp" self.Version = V(1, 0, 0) def Init(self): command.addChatCommand("WipeChange last", self.Plugin, "CWD") command.AddChatCommand("WipeInfo", self.Plugin, "W") def LoadDefaultConfig(self): self.Config = { "Date of the next wipe": "DATE", "Date of the last wipe": "DATE" } def CWD(self, player, cmd, args): self.Config["Date of the last wipe"] = self. rust.SendChatMessage(player) def W(self, player, cmd, args): rust.SendChatMessage(player, "The Last Wipe Was " + self.Config["Date of the last wipe"] + " The next Wipe is on " + self.Config["Date of the last wipe"])
Updating a value in a config?
Discussion in 'Rust Development' started by Serenity 3, Aug 1, 2016.
