Jump to content

Statistics and Points Reset

Closed 1.1.41

Fantasma
Fantasma

Posted

Hi @Mevent,

I'm encountering an issue with the Clans plugin on my server.

After every server restart or plugin reload, all player points, kills, and deaths are reset.
Additionally, statistics are only being tracked when players are inside a clan, but even then, the data is lost when the server or plugin is reloaded.

Could you please assist me in resolving this issue so that points and stats persist correctly?

Thank you for your help!

Best regards

MeventSupport

Posted

Hi! Are you sure you're using the latest version of the plugin?

Fantasma

Posted

Yes, I keep track of all my plugin updates, and I’ve confirmed that I’m using the latest version of the Clans plugin.
Just to be sure, I downloaded the latest file today and uploaded it to my server, but the issues with the statistics resetting and not persisting after restart or reload still remain.

MeventSupport

Posted

3 minutes ago, Fantasma said:

Yes, I keep track of all my plugin updates, and I’ve confirmed that I’m using the latest version of the Clans plugin.
Just to be sure, I downloaded the latest file today and uploaded it to my server, but the issues with the statistics resetting and not persisting after restart or reload still remain.

Can you send me your config?

Fantasma

Posted

{
  "Avatar Settings": {
    "Default Avatar": "https://rustykings.com/img/RKtransparente.png",
    "Can the clan owner change the avatar?": true,
    "Can the clan moderator change the avatar?": false,
    "Can the clan member change the avatar?": false,
    "Permission to change clan avatar": "",
    "Steam API key (get one here: https://steamcommunity.com/dev/apikey)": ""
  },
  "Commands": [
    "clan",
    "clans",
    "team"
  ],
  "Clan Info Commands": [
    "cinfo"
  ],
  "Maximum clan description characters": 256,
  "Clan tag in player name": false,
  "Automatic team creation": true,
  "Allow players to leave their clan by using Rust's leave team button": true,
  "Allow players to kick members from their clan using Rust's kick member button": true,
  "Allow players to invite other players to their clan via Rust's team invite system": true,
  "Allow players to promote other clan members via Rust's team promote button": true,
  "Allow players to accept a clan invite using the Rust invite accept button": true,
  "Show clan creation interface when creating a team?": true,
  "Force to create a clan when creating a team?": true,
  "Top refresh rate": 1.0,
  "Default value for the resource standarts": 1,
  "Chat Settings": {
    "Enable clan tags in chat?": true,
    "Tag format": "<color=#{color}>[ {tag} ]</color>",
    "Enable clan chat?": true,
    "Clan chat commands": [
      "c",
      "cchat"
    ],
    "Enable alliance chat?": false,
    "Alliance chat commands": [
      "a",
      "achat"
    ],
    "Working with BetterChat?": true,
    "Working with IQChat?": false,
    "Working with in-game chat?": false
  },
  "Permission Settings": {
    "Use permission to create a clan": false,
    "Permission to create a clan": "clans.cancreate",
    "Use permission to join a clan": false,
    "Permission to join a clan": "clans.canjoin",
    "Use permission to kick a clan member": false,
    "Clan kick permission": "clans.cankick",
    "Use permission to leave a clan": false,
    "Clan leave permission": "clans.canleave",
    "Use permission to disband a clan": false,
    "Clan disband permission": "clans.candisband",
    "Use permission to clan skins": false,
    "Use clan skins permission": "clans.canskins",
    "Minimum auth level required to view clan info (0 = player, 1 = moderator, 2 = owner)": 0
  },
  "Alliance Settings": {
    "Enable clan alliances": false,
    "Enable friendly fire (allied clans)": false,
    "Default friendly fire value": false,
    "General friendly fire (only the leader of the clan can enable/disable it)": false,
    "Can moderators toggle general friendly fire?": false,
    "Can players toggle general friendly fire?": false,
    "Add players from the clan alliance to in-game teams?": false
  },
  "Purge Settings": {
    "Enable clan purging": true,
    "Purge clans that havent been online for x amount of days": 14,
    "List purged clans in console when purging": true,
    "Wipe clans on new map save": true,
    "Wipe players on new map save": true,
    "Wipe invites on new map save": true
  },
  "Limit Settings": {
    "Member Limit": 8,
    "Moderator Limit": 4,
    "Alliances Limit": 0
  },
  "Resources": [
    "stones",
    "sulfur.ore",
    "metal.ore",
    "hq.metal.ore",
    "wood"
  ],
  "Available items for resource standarts": [
    "wood",
    "stones",
    "sulfur.ore",
    "sulfur",
    "metal.ore",
    "metal.fragments",
    "hq.metal.ore",
    "lowgradefuel",
    "crude.oil",
    "diesel_barrel",
    "scrap",
    "charcoal",
    "cloth",
    "gunpowder",
    "leather",
    "metalblade",
    "metalpipe",
    "propanetank",
    "roadsigns",
    "rope",
    "sewingkit",
    "sheetmetal",
    "metalspring",
    "tarp",
    "techparts",
    "riflebody",
    "semibody",
    "smgbody",
    "cctv.camera",
    "targeting.computer",
    "gears",
    "autoturret",
    "pistol.m92",
    "pistol.semiauto",
    "pistol.prototype17",
    "shotgun.pump",
    "shotgun.spas12",
    "shotgun.m4",
    "multiplegrenadelauncher",
    "smg.2",
    "smg.thompson",
    "smg.mp5",
    "rifle.semiauto",
    "rifle.m39",
    "rifle.ak",
    "rifle.ak.ice",
    "rifle.ak.diver",
    "rifle.lr300",
    "rifle.sks",
    "hmlmg",
    "rifle.bolt",
    "rifle.l96",
    "lmg.m249",
    "minigun",
    "rocket.launcher",
    "rocket.launcher.dragon",
    "homingmissile.launcher"
  ],
  "Pages": [
    {
      "ID (DON'T CHANGE)": 0,
      "Key (DON'T CHANGE)": "aboutclan",
      "Enabled?": true,
      "Permission": ""
    },
    {
      "ID (DON'T CHANGE)": 1,
      "Key (DON'T CHANGE)": "memberslist",
      "Enabled?": true,
      "Permission": ""
    },
    {
      "ID (DON'T CHANGE)": 2,
      "Key (DON'T CHANGE)": "clanstop",
      "Enabled?": true,
      "Permission": ""
    },
    {
      "ID (DON'T CHANGE)": 3,
      "Key (DON'T CHANGE)": "playerstop",
      "Enabled?": true,
      "Permission": ""
    },
    {
      "ID (DON'T CHANGE)": 4,
      "Key (DON'T CHANGE)": "resources",
      "Enabled?": true,
      "Permission": ""
    },
    {
      "ID (DON'T CHANGE)": 6,
      "Key (DON'T CHANGE)": "skins",
      "Enabled?": false,
      "Permission": ""
    },
    {
      "ID (DON'T CHANGE)": 5,
      "Key (DON'T CHANGE)": "playerslist",
      "Enabled?": true,
      "Permission": ""
    },
    {
      "ID (DON'T CHANGE)": 7,
      "Key (DON'T CHANGE)": "alianceslist",
      "Enabled?": false,
      "Permission": ""
    }
  ],
  "Interface": {
    "Color One": {
      "HEX": "#000000",
      "Opacity (0 - 100)": 55.0
    },
    "Color Two": {
      "HEX": "#153D5C",
      "Opacity (0 - 100)": 100.0
    },
    "Color Three": {
      "HEX": "#000000",
      "Opacity (0 - 100)": 100.0
    },
    "Color Four": {
      "HEX": "#164163",
      "Opacity (0 - 100)": 100.0
    },
    "Color Five": {
      "HEX": "#303030",
      "Opacity (0 - 100)": 100.0
    },
    "Color Six": {
      "HEX": "#FF0000",
      "Opacity (0 - 100)": 100.0
    },
    "Color Seven": {
      "HEX": "#ff0000",
      "Opacity (0 - 100)": 23.0
    },
    "Color Eight": {
      "HEX": "#0E0E10",
      "Opacity (0 - 100)": 99.0
    },
    "Use value abbreviation?": true,
    "Show the close button on the clan creation screen?": true,
    "Top Clans Columns": [
      {
        "Width": 75.0,
        "Lang Key": "TopTitle",
        "Key": "top",
        "Text Format": "#{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 10,
        "Font Size": 12
      },
      {
        "Width": 165.0,
        "Lang Key": "NameTitle",
        "Key": "name",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 12,
        "Font Size": 12
      },
      {
        "Width": 70.0,
        "Lang Key": "LeaderTitle",
        "Key": "leader",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 12,
        "Font Size": 12
      },
      {
        "Width": 90.0,
        "Lang Key": "MembersTitle",
        "Key": "members",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 12,
        "Font Size": 12
      },
      {
        "Width": 80.0,
        "Lang Key": "ScoreTitle",
        "Key": "score",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 12,
        "Font Size": 12
      }
    ],
    "Top Players Columns": [
      {
        "Width": 75.0,
        "Lang Key": "TopTitle",
        "Key": "top",
        "Text Format": "#{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 10,
        "Font Size": 12
      },
      {
        "Width": 185.0,
        "Lang Key": "NameTitle",
        "Key": "name",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 12,
        "Font Size": 12
      },
      {
        "Width": 70.0,
        "Lang Key": "KillsTitle",
        "Key": "kills",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 12,
        "Font Size": 12
      },
      {
        "Width": 70.0,
        "Lang Key": "ResourcesTitle",
        "Key": "resources",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 12,
        "Font Size": 12
      },
      {
        "Width": 80.0,
        "Lang Key": "ScoreTitle",
        "Key": "score",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 12,
        "Font Size": 12
      }
    ],
    "Profile Buttons": [
      {
        "Enabled": false,
        "Close Menu?": true,
        "Command": "tpr {target}",
        "Color": {
          "HEX": "#324192",
          "Opacity (0 - 100)": 100.0
        },
        "Title": "TP",
        "Font Size": 10,
        "Font": "robotocondensed-regular.ttf",
        "Align": "MiddleCenter",
        "Text Color": {
          "HEX": "#FFFFFF",
          "Opacity (0 - 100)": 100.0
        },
        "AnchorMin": "0 1",
        "AnchorMax": "0 1",
        "OffsetMin": "270 -55",
        "OffsetMax": "360 -30"
      },
      {
        "Enabled": false,
        "Close Menu?": true,
        "Command": "trade {target}",
        "Color": {
          "HEX": "#324192",
          "Opacity (0 - 100)": 100.0
        },
        "Title": "TRADE",
        "Font Size": 10,
        "Font": "robotocondensed-regular.ttf",
        "Align": "MiddleCenter",
        "Text Color": {
          "HEX": "#FFFFFF",
          "Opacity (0 - 100)": 100.0
        },
        "AnchorMin": "0 1",
        "AnchorMax": "0 1",
        "OffsetMin": "370 -55",
        "OffsetMax": "460 -30"
      }
    ],
    "Clan Member Profile Fields": [
      {
        "Width": 140.0,
        "Lang Key": "GatherTitle",
        "Key": "gather",
        "Text Format": "{0}%",
        "Text Align": "MiddleCenter",
        "Title Font Size": 10,
        "Font Size": 12
      },
      {
        "Width": 140.0,
        "Lang Key": "LastLoginTitle",
        "Key": "lastlogin",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 10,
        "Font Size": 10
      }
    ],
    "Top Player Profile Fields": [
      {
        "Width": 300.0,
        "Lang Key": "ClanNameTitle",
        "Key": "clanname",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 10,
        "Font Size": 12
      },
      {
        "Width": 140.0,
        "Lang Key": "RatingTitle",
        "Key": "rating",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 10,
        "Font Size": 12
      },
      {
        "Width": 140.0,
        "Lang Key": "ScoreTitle",
        "Key": "score",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 10,
        "Font Size": 12
      },
      {
        "Width": 140.0,
        "Lang Key": "KillsTitle",
        "Key": "kills",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 10,
        "Font Size": 12
      },
      {
        "Width": 140.0,
        "Lang Key": "DeathsTitle",
        "Key": "deaths",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 10,
        "Font Size": 12
      },
      {
        "Width": 140.0,
        "Lang Key": "KDTitle",
        "Key": "kd",
        "Text Format": "{0}",
        "Text Align": "MiddleCenter",
        "Title Font Size": 10,
        "Font Size": 12
      }
    ],
    "Show the 'Change avatar' button?": true,
    "Show the 'Leave' button?": true,
    "About Clan Page": {
      "Show Clan Name?": true,
      "Show Clan Avatar?": true,
      "Show Clan Leader?": true,
      "Show Clan Gather?": true,
      "Show Clan Rating?": true,
      "Show Clan Members?": true,
      "Show Clan Description?": true
    },
    "Top Players Page": {
      "Players on page": 7,
      "Up Indent": 50.0,
      "Height": 37.5,
      "Width": 480.0,
      "Margin": 2.5
    },
    "Top Clans Page": {
      "Clans on page": 7,
      "Up Indent": 50.0,
      "Height": 37.5,
      "Width": 480.0,
      "Margin": 2.5
    },
    "Clans Members Page": {
      "Members on line": 2,
      "Max Lines": 8,
      "Up Indent": 0.0,
      "Height": 35.0,
      "Width": 237.5,
      "Margin": 5.0
    },
    "Players List Page": {
      "Members on line": 2,
      "Max Lines": 8,
      "Up Indent": 0.0,
      "Height": 35.0,
      "Width": 237.5,
      "Margin": 5.0,
      "Show all players? (online and ofline)": true
    }
  },
  "Skins Settings": {
    "Item Skins": {},
    "Use skins from Skinner?": false,
    "Use skins from SkinBox?": false,
    "Use skins from PlayerSkins?": false,
    "Use skins from LSkins?": false,
    "Can players install custom skins?": false,
    "Permission to install custom skin": "",
    "Option to disable clan skins?": true,
    "Default value to disable skins": true
  },
  "Statistics Settings": {
    "Kills": true,
    "Gather": true,
    "Loot": true,
    "Entities": true,
    "Craft": true
  },
  "Colos Settings": {
    "Clan owner color (hex)": "#7cfa02",
    "Clan moderator color (hex)": "#9d00ff",
    "Clan member color (hex)": "#9c8500"
  },
  "PlayerDatabase": {
    "Enabled": true,
    "Table": "Clans"
  },
  "ZoneManager Settings": {
    "Enabled": false,
    "Zones with allowed Friendly Fire": [
      "92457",
      "4587478545"
    ]
  },
  "Clan Tag Settings": {
    "Blocked Words": [
      "admin",
      "mod",
      "owner",
      "dick",
      "penis",
      "white",
      "black",
      "nigga",
      "nigra",
      "fuck",
      "frigger",
      "shit",
      "cock",
      "crap",
      "cunt",
      "asshole",
      "bastard",
      "arse",
      "ass",
      "jesus",
      "kick",
      "ban"
    ],
    "Minimum clan tag characters": 3,
    "Maximum clan tag characters": 6,
    "Enable case sensitivity for clan tags": true,
    "Enable character checking in tags?": true,
    "Special characters allowed in tags": "!²³",
    "Tag Color Settings": {
      "Enabled": true,
      "Default Color": "FFFFFF",
      "Can the owner change the color?": true,
      "Can the moderators change the color?": true,
      "Can the players change the color?": false
    }
  },
  "Commands Settings": {
    "Clans FF": [
      "cff"
    ],
    "Aliance FF": [
      "aff"
    ]
  },
  "Saving Settings": {
    "Enable saving player data during server saves?": false,
    "Enable saving clan data during server save?": false
  },
  "Friendly Fire Settings": {
    "Use Friendly Fire?": false,
    "Use Friendly Fire for Turrets?": false,
    "General friendly fire (only the leader of the clan can enable/disable it)": false,
    "Can moderators toggle general friendly fire?": false,
    "Can players toggle general friendly fire?": false,
    "Friendly Fire Default Value": false,
    "Ignore when using ArenaTournament?": true
  },
  "Paid Functionality Settings": {
    "Economy": {
      "Type (Plugin/Item)": "Plugin",
      "Plugin name": "Economics",
      "Balance add hook": "Deposit",
      "Balance remove hook": "Withdraw",
      "Balance show hook": "Balance",
      "ShortName": "note",
      "Display Name (empty - default)": "RK Notes",
      "Skin": 3064126779
    },
    "Charge a fee to create a clan?": false,
    "Cost of creating a clan": 100,
    "Charge a fee to join a clan?": false,
    "Cost of joining a clan": 100,
    "Charge a fee to kick a clan member?": false,
    "Cost of kicking a clan member": 100,
    "Charge a fee to leave a clan?": false,
    "Cost of leaving a clan": 100,
    "Charge a fee to disband a clan?": false,
    "Cost of disbanding a clan": 100,
    "Charge a fee to set a clan skin?": false,
    "Cost of setting a clan skin": 100,
    "Charge a fee to set a clan avatar?": false,
    "Cost of setting a clan avatar": 100,
    "Charge a fee for sending an invitation to a clan?": false,
    "Cost of sending an invitation to a clan": 100
  },
  "Pages Settings": {
    "Default Pages": {
      "Enabled": true,
      "Default page when a clan not found": 2,
      "Default page when a clan exists": 0
    },
    "Stay on page with selected skin": true
  },
  "Loot Settings": {
    "Enabled": true,
    "Loot": [
      {
        "Enabled": true,
        "Short Name": "kills",
        "Loot Type": "Kill",
        "Score": 10.0
      },
      {
        "Enabled": true,
        "Short Name": "deaths",
        "Loot Type": "Kill",
        "Score": -10.0
      },
      {
        "Enabled": true,
        "Short Name": "stone-ore",
        "Loot Type": "Gather",
        "Score": 0.001
      },
      {
        "Enabled": true,
        "Short Name": "supply_drop",
        "Loot Type": "LootCrate",
        "Score": 1.0
      },
      {
        "Enabled": true,
        "Short Name": "crate_normal",
        "Loot Type": "LootCrate",
        "Score": 1.0
      },
      {
        "Enabled": true,
        "Short Name": "crate_elite",
        "Loot Type": "LootCrate",
        "Score": 1.0
      },
      {
        "Enabled": true,
        "Short Name": "bradley_crate",
        "Loot Type": "LootCrate",
        "Score": 1.0
      },
      {
        "Enabled": true,
        "Short Name": "heli_crate",
        "Loot Type": "LootCrate",
        "Score": 1.0
      },
      {
        "Enabled": true,
        "Short Name": "bradley",
        "Loot Type": "Kill",
        "Score": 100.0
      },
      {
        "Enabled": true,
        "Short Name": "helicopter",
        "Loot Type": "Kill",
        "Score": 300.0
      },
      {
        "Enabled": true,
        "Short Name": "barrel",
        "Loot Type": "Kill",
        "Score": 1.0
      },
      {
        "Enabled": true,
        "Short Name": "scientistnpc",
        "Loot Type": "Kill",
        "Score": 1.0
      },
      {
        "Enabled": true,
        "Short Name": "heavyscientist",
        "Loot Type": "Kill",
        "Score": 1.0
      },
      {
        "Enabled": true,
        "Short Name": "sulfur.ore",
        "Loot Type": "Gather",
        "Score": 0.01
      },
      {
        "Enabled": true,
        "Short Name": "metal.ore",
        "Loot Type": "Gather",
        "Score": 0.002
      },
      {
        "Enabled": true,
        "Short Name": "stones",
        "Loot Type": "Gather",
        "Score": 0.001
      }
    ]
  },
  "Version": {
    "Major": 1,
    "Minor": 1,
    "Patch": 41
  }
}

MeventSupport

Posted

All right! I'll finish my business and check it out.

Fantasma

Posted

Thank you! I appreciate your help.

Best regards

  • Love 1
Mevent

Posted

Hi. Try enabling these settings:

  "Saving Settings": {
    "Enable saving player data during server saves?": true,
    "Enable saving clan data during server save?": true
  },

 

Fantasma

Posted

I tried enabling those settings, but unfortunately, the problem still persists.
The statistics (points, kills, deaths) continue to reset after a server restart or plugin reload.

Mevent

Posted

Hmm, I get it. I'll see what I can do to fix it.

Fantasma

Posted

Thank you!
I appreciate your time and effort in looking into this.
I'll wait for your update.

Best regards

  • Love 1
Mevent

Posted

27 minutes ago, Fantasma said:

I use oxide

 

Can you message me on discord? I'll send you the fixed version to see if it fixed the problem on your side

Mevent

Posted

Changed Status from Pending to Closed

  • Love 1
Fantasma

Posted

I can only be extremely grateful for the way @Mevent solves these problems (even the non-existent ones like in my case), I am very grateful for the help in solving my failure to pay attention to the configuration file, once again THANK YOU VERY MUCH 

 

  • Love 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.