If not, can you please make trails on by default with a configurable setting of what type of trail I want on by default for everyone.
Are trails on by default?Solved
Hi I will not be adding configuration for that but you can change line 47 from
public bool active = false;to
public bool active = true; it doesn't work, still have to type /trail
Can you make the trails already on by default so everyone that starts flying has a trail without having to type anything?
In the future I may add configuration for this, but here is a temporary fix.
Starting on line 44 you will find the configuration:
private class Preferences
{
public bool active = false;
public int count = 1;
public trailType type = trailType.fire;
public Preferences() { }
}You can simply set active to true, and the other preferences to how you would like them. Now you can go to oxide > data in your files and delete MiniTrails.json. This will delete all of your current users' preferences, and have them spawn with the trail by default.
Same here. Even deleted the data file and reloadedDoldak7955
Not working only if Player type one time /trail ......
I forgot to mention this in my original response, but the reason you don't have a default config is so the plugin doesn't have to store data on every single user, even if they do not have permission or do not want to use the trails. If you wish to have all users have the trails on by default, you have to do what I mentioned in my first response, as well as add some code to line 90 as shown below
mini.OwnerID = player.userID;
if (MountedMinis.ContainsKey(player.userID))
MountedMinis.Remove(player.userID);
/**************************************************************LINE 90*/
if (!data.preferences.ContainsKey(player.userID))
data.preferences.Add(player.userID, new Preferences());
/***************************************************************/
MountedMinis.Add(player.userID, new MiniT(mini, player)); Can you turn this into a cs file? I am so confusedSalsa
I forgot to mention this in my original response, but the reason you don't have a default config is so the plugin doesn't have to store data on every single user, even if they do not have permission or do not want to use the trails. If you wish to have all users have the trails on by default, you have to do what I mentioned in my first response, as well as add some code to line 90 as shown below
mini.OwnerID = player.userID; if (MountedMinis.ContainsKey(player.userID)) MountedMinis.Remove(player.userID); /**************************************************************LINE 90*/ if (!data.preferences.ContainsKey(player.userID)) data.preferences.Add(player.userID, new Preferences()); /***************************************************************/ MountedMinis.Add(player.userID, new MiniT(mini, player));
I will only do this once for this version. I encourage you to look over the file and see what I added on line 90. This plugin was created for Rustic Rejects minicopter training server and I will keep the plugin the way the owner wants it, sorry.
CS file here
Locked automatically