I realized that it was an incurable error ?
[DOUBLEPOST=1458543698][/DOUBLEPOST]Console: WarTime.cs(111,73): warning CS0184: The given expression is never of the provided (`CodeHatch.Engine.Networking.Player') type
Kits.cs(150,25): warning CS0649: Field `Oxide.Plugins.Kits.KitData.Enabled' is never assigned to, and will always have its default value `false'
RestartAnnouncer.cs(18,21): warning CS0414: The private field `Oxide.Plugins.RestartAnnouncer.time' is assigned but its value is never used

WarTime
Allows admins to set a dedicated time for the use of siege weapons
Total Downloads: 1,143 - First Release: May 10, 2015 - Last Update: Jul 26, 2016
- 4.92308/5, 13 likes
-
Wulf Community Admin
-
-
I want just remove trebuchet of my server on peace time but i want ballista to be okay in peacetime, how can i make it ?
What lines i have to modify ? -
pls could you take a look was working until i updated to the latest one cheers it wont load a config file or load at all
-
Hi,
Just started to try this mod out today. I am trying to modifie the time for peacetime/wartime in the config file. But no matter what i do it is peacetime all the time, unless i toggle wartime on and off manually by using command /wartime.
Right now i keep the mod on default settings (except the punish-thing) while im trying to find a solution, and even then it is always peacetime, all day, all night.
This is how it looks in the config file as default.
{
"adminSiegeException": false,
"BanTime": 1,
"Peacetime": 23,
"Punish": "kick",
"UsingRealtime": false,
"WarOn": false,
"Wartime": 9
}
I would like it to be wartime from 23.00 to 02.00 using realtime... I have tried it. It did not work.
Help a noob out?
Edit: It did not work for some reason yesterday, but today it worked when i tried a different peacetime/wartime.Last edited by a moderator: May 28, 2016 -
{
"adminSiegeException": false,
"BanTime": 1,
"Peacetime": 2,
"Punish": "kick",
"UsingRealtime": true,
"WarOn": false,
"Wartime": 23
}
the three things I changed were:
{
"Peacetime": 23, (changed to 2 to activate peacetime at 02.00)
"UsingRealtime": false, (changed to true to actually work with time)
"Wartime": 9 (changed to 23 to activate wartime at 23.00)
}
[DOUBLEPOST=1465516066][/DOUBLEPOST]
-
-
-
Lately i have tried to set the wartime to start at 23:00 (i use the number 23) and peacetime to start at 01:00 (i use the number 1). I then save the change, wait for it so finish saving, then open the config file again - but the numbers are back to what they where before i made the change. Anyone else experience this? -
-
Thank you, it worked.
-
Okay so the updates work, but now when I I fire a treb during Peace Time I am kicked, but my logs are flooded with this and it says the kick message several time in chat. 2868 Lines of Errors. Not great for my logs.
01:04 [Error] Failed to call hook 'OnCubeTakeDamage' on plugin 'WarTime v1.1.1' - Pastebin.com -
Logs and chat don't get spammed anymore thanks. There is still one error. But that shouldn't be an issue.
Code:08:15 [Debug] NullReferenceException: Object reference not set to an instance of an object CodeHatch.Blocks.CubeInfo.DestroyPrefab () TilesetColliderCube.OnDamage (CodeHatch.Damaging.Damage damage, DamageSource source) ExplodeDamage.DamageBlocks (Bounds bounds) ExplodeDamage+<ApplyEffectsOverTime>c__Iterator1C7.MoveNext ()
-
Suddenly he stopped working... WTF
-
-
Code:
21:35 [Error] Failed to initialize plugin 'WarTime v1.1.2' (JsonSerializationException: No JSON content found and type 'System.Boolean' is not nullable. Path '', line 1, position 5.) 21:35 [Debug] at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00000] in <filename unknown>:0
-
Hello,
When an admin named Bill trebbed a base they still get kicked or banned, was wondering why with this as my setup and having adminSiegeexception set to True?
{
"Settings": {
"Admin1": "Bill",
"Admin2": "Yuudachi",
"Admin3": "Kinomoto",
"adminSiegeException": true,
"BanTime": 1,
"ignoreBallista": false,
"ignoreTrebuchet": false,
"Peacetime": 24,
"Punish": "Ban",
"UsingRealtime": false,
"Wartime": 3
} -