Hello everyone,
Im trying to setup quick smelt, but it does not work.
Want to have everything that can be cooked and also charcoal, to cook quicker.
Do not want to use permissions, everyone should be allowed to use this.
Could anyone help me with this?
I did this
[Info("Quick Smelt", "misticos", "5.1.5")]
[Description("Increases the speed of the furnace smelting")]
class QuickSmelt : RustPlugin
{
#region Variables
private static QuickSmelt _instance;
private const string PermissionUse = "quicksmelt.use";
#endregion
#region Configuration
private static Configuration _config;
private class Configuration
{
[JsonProperty(PropertyName = "Use Permission")]
public bool UsePermission = false;
[JsonProperty(PropertyName = "Speed Multipliers", ObjectCreationHandling = ObjectCreationHandling.Replace)]
public Dictionary<string, float> SpeedMultipliers = new Dictionary<string, float>
{
{ "global", 2.0f }, // Doubles speed globally
{ "metal.ore", 2.0f },
{ "hq.metal.ore", 2.0f },
{ "sulfur.ore", 2.0f },
{ "charcoal", 2.0f },
{ "wood", 2.0f },
{ "meat", 2.0f }
};
[JsonProperty(PropertyName = "Fuel Usage Speed Multipliers",
ObjectCreationHandling = ObjectCreationHandling.Replace)]
public Dictionary<string, float> FuelSpeedMultipliers = new Dictionary<string, float>
{
{ "global", 2.0f },
{ "furnace.shortname", 2.0f }
};
[JsonProperty(PropertyName = "Fuel Usage Multipliers",
ObjectCreationHandling = ObjectCreationHandling.Replace)]
public Dictionary<string, int> FuelUsageMultipliers = new Dictionary<string, int>
{
{ "global", 1 },
{ "furnace.shortname", 1 }
};
[JsonProperty(PropertyName = "Output Multipliers", ObjectCreationHandling = ObjectCreationHandling.Replace)]
public Dictionary<string, Dictionary<string, float>> OutputMultipliers =
new Dictionary<string, Dictionary<string, float>>
{
{ "furnace.shortname", new Dictionary<string, float>
{
{ "metal.ore", 2.0f },
{ "hq.metal.ore", 2.0f },
{ "sulfur.ore", 2.0f },
{ "charcoal", 2.0f },
{ "wood", 2.0f },
{ "meat", 2.0f }
}
}
};
Do I need to do it in another way? im kinda stuck on this.
Best regards,
Bob
Trying to setup quick smelt but it does not seem to work
You can grant the permission to everyone by granting it to the "default" group which everyone has out of box. Make sure you modify the /oxide/config/QuickSmelt.json file, NOT the /oxide/plugins/QuickSmelt.cs - plugin files are never to be adjusted, only their configurations and rarely data files.