Zrips / CMI

117 stars 99 forks source link

CMI Ranks resetting users #9008

Open KoalaServers opened 3 months ago

KoalaServers commented 3 months ago

Description of Issue

Occasionally some users will have their rank reset back to default.

Version Information

9.7.4.8

Errors

No errors.

Relevant Config Sections

dingo:
  Enabled: true
  DisplayName: '{#monsoon>}ᴅɪɴɢо{#armadillo<}'
  DefaultRank: true
  AutoRankup: true
  RankupConfirmation: false
  NextRanks:
  - wallaby
wallaby:
  Enabled: true
  DisplayName: '{#meteor>}ᴡᴀʟʟᴀʙʏ{#straw<}'
  AutoRankup: true
  RankupConfirmation: false
  Votes: 20
  NextRanks:
  - wallabyplus
  Commands:
  - broadcast! %cmi_user_nickname% &7Voted 20 times! &7Ranked up to {#meteor>}ᴡᴀʟʟᴀʙʏ{#straw<}
  - asConsole! lp user [playerName] parent settrack votetrack wallaby
  StatsRequirements:
  - AccountAge:172800
wallabyplus:
  Enabled: true
  DisplayName: '{#meteor>}ᴡᴀʟʟᴀʙʏ+{#straw<}'
  AutoRankup: true
  RankupConfirmation: false
  Votes: 40
  NextRanks:
  - kangaroo
  Commands:
  - broadcast! %cmi_user_nickname% &7Voted &n&a40 times! &7Ranked up to {#meteor>}ᴡᴀʟʟᴀʙʏ+{#straw<}
  - asConsole! lp user [playerName] parent settrack votetrack wallabyplus
  StatsRequirements:
  - AccountAge:345600
kangaroo:
  Enabled: true
  DisplayName: '{#thatch>}ʀоо{#goldtips<}'
  AutoRankup: true
  RankupConfirmation: false
  Votes: 60
  NextRanks:
  - kangarooplus
  Commands:
  - broadcast! %cmi_user_nickname% &7Voted &n&a60 times! &7Ranked up to {#thatch>}ʀоо{#goldtips<}
  - asConsole! lp user [playerName] parent settrack votetrack kangaroo
  StatsRequirements:
  - AccountAge:518400
kangarooplus:
  Enabled: true
  DisplayName: '{#thatch>}ʀоо+{#goldtips<}'
  AutoRankup: true
  RankupConfirmation: false
  Votes: 80
  NextRanks:
  - emu
  Commands:
  - broadcast! %cmi_user_nickname% &7Voted &n&a80 times! &7Ranked up to {#thatch>}ʀоо+{#goldtips<}
  - asConsole! lp user [playerName] parent settrack votetrack kangarooplus
  StatsRequirements:
  - AccountAge:691200
emu:
  Enabled: true
  DisplayName: '{#frenchpass>}ᴇмᴜ{#bostonblue<}'
  AutoRankup: true
  RankupConfirmation: false
  Votes: 120
  NextRanks:
  - emuplus
  DefaultRank: false
  Commands:
  - broadcast! %cmi_user_nickname% &7Voted &n&a120 times! &7Ranked up to {#frenchpass>}ᴇмᴜ{#bostonblue<}
  - asConsole! lp user [playerName] parent settrack votetrack emu
emuplus:
  Enabled: true
  DisplayName: '{#frenchpass>}ᴇмᴜ+{#bostonblue<}'
  AutoRankup: true
  RankupConfirmation: false
  Votes: 160
  NextRanks:
  - croc
  DefaultRank: false
  Commands:
  - broadcast! %cmi_user_nickname% &7Voted &n&a160 times! &7Ranked up to {#frenchpass>}ᴇмᴜ+{#bostonblue<}
  - asConsole! lp user [playerName] parent settrack votetrack emuplus
croc:
  Enabled: true
  DisplayName: '{#silk>}ᴄʀоᴄ{#keylimepie<}'
  AutoRankup: true
  RankupConfirmation: false
  Votes: 200
  NextRanks:
  - crocplus
  DefaultRank: false
  Commands:
  - broadcast! %cmi_user_nickname% &7Voted &n&a200 times! &7Ranked up to {#silk>}ᴄʀоᴄ{#keylimepie<}
  - asConsole! lp user [playerName] parent settrack votetrack croc
crocplus:
  Enabled: true
  DisplayName: '{#silk>}ᴄʀоᴄ+{#keylimepie<}'
  AutoRankup: true
  RankupConfirmation: false
  Votes: 320
  NextRanks:
  - redback
  DefaultRank: false
  Commands:
  - broadcast! %cmi_user_nickname% &7Voted &n&a320 times! &7Ranked up to {#silk>}ᴄʀоᴄ+{#keylimepie<}
  - asConsole! lp user [playerName] parent settrack votetrack crocplus
redback:
  Enabled: true
  DisplayName: '{#red>}ʀᴇᴅʙᴀᴄᴋ{#lonestar<}'
  AutoRankup: true
  RankupConfirmation: false
  Votes: 440
  NextRanks:
  - redbackplus
  DefaultRank: false
  Commands:
  - broadcast! %cmi_user_nickname% &7Voted &n&a440 times! &7Ranked up to {#red>}ʀᴇᴅʙᴀᴄᴋ{#lonestar<}
  - asConsole! lp user [playerName] parent settrack votetrack redback
redbackplus:
  Enabled: true
  DisplayName: '{#red>}ʀᴇᴅʙᴀᴄᴋ+{#lonestar<}'
  AutoRankup: true
  RankupConfirmation: false
  Votes: 560
  NextRanks:
  - taipan
  DefaultRank: false
  Commands:
  - broadcast! %cmi_user_nickname% &7Voted &n&a560 times! &7Ranked up to {#red>}ʀᴇᴅʙᴀᴄᴋ+{#lonestar<}
  - asConsole! lp user [playerName] parent settrack votetrack redbackplus

Relevant Plugins

Vault 1.7.3-CMI, VotingPlugin, NuVotifer

Agreements

Zrips commented 3 months ago

Does this happen on server startup, shutdown or plugin reload? Any additional information would help out to determine root cause here

KoalaServers commented 3 months ago

I totally understand the information you are requesting, but unfortunately this fault is so intermittent it’s crazy. (Might happen to some users after a restart, but then the server could also have been running for a week straight and out of the blue it happens). We had 0 issues for about 3 months, then it happened to about 8 active users. Over a year this has always been an intermittent issue but is generally ok to ignore as they rank back up automatically anyway.

I was reading the contents of the SQLite database and trying to see if the user stored on there was back to default etc. But this was too hard to monitor as it’s intermittent and we don’t know who gets reset next.

I’m guessing it’s within where the players rank is stored/sent and the ranks.yml actions are sent/executed etc. Thanks for your help!

Zrips commented 3 months ago

So this happens while server is running? Does it ever happen while player whose rank got a reset was online or did that happen on his login/logout?

Zrips commented 3 months ago

By any chance you have players with permission node like cmi.rank.dingo?

KoalaServers commented 3 months ago

So this happens while server is running? Does it ever happen while player whose rank got a reset was online or did that happen on his login/logout?

Some users yes I see how it would happen at login/log off, as when they joined within a couple of seconds you'd see our configured rank up broadcast message display. That being said it's also happened to players that were logged in for up to 1-2 hours.

At the start I never used the permission node, and thought it was that so yes we go cmi.rank.dingo for default rank and negate that for the following ranks - wallaby, wallaby+ etc.

github-actions[bot] commented 1 week ago

This issue has been marked as stale due to inactivity.