BenCodez / VotingPlugin

Plugin on SpigotMC
Other
83 stars 68 forks source link

Backend servers do not receive rewards #1332

Closed hiiamken closed 8 months ago

hiiamken commented 9 months ago

Versions 6.15 + Paper 1.20

Describe the bug I don't know why the backend servers do not receive rewards when voting and the voting party does not increase. Bungee still reports a successful vote.

My config: Bungeeconfig.yml: https://controlc.com/41ac9781 Bungeesetting.yml: https://controlc.com/1e3c6989 Config.yml: https://controlc.com/f4489035

hiiamken commented 8 months ago

I use nlogin to skip login of premium players

hiiamken commented 8 months ago

"Do you have online and offline uuids on the same server?" How do I check?

BenCodez commented 8 months ago

I use nlogin to skip login of premium players

I think you are, premium players I assume are players with online uuids

hiiamken commented 8 months ago

If I delete all data and set up again from scratch, is it okay? I understand that because the player's uuid was messed up, if I start over now, the player's uuid will reset, right?

BenCodez commented 8 months ago

You can try, but it might still happen again if your mixing online and offline uuids

hiiamken commented 8 months ago

I realized it was due to a mysql connection limit problem, the hosting company just fixed it for me and voting worked again. But I think I'll try resetting it...

hiiamken commented 8 months ago

I have now reset it but there is one problem. I have 2 servers A and B, when players vote offline -> go to server B first, there is no notification of successful vote -> when switching to server A, they get a notification of successful vote. I need the following 3 things

  1. Offline voting will only receive 1 server cluster (first when participating)
  2. Vote is only counted for 1 server
  3. Voting milestones on each server are different (Currently synchronized)

Can you answer me the above 3 questions?

hiiamken commented 8 months ago

bungeeconfig: https://pastebin.com/GXyD84C6 bungeesetting server B: https://pastebin.com/Mzpmu8Sj config server B: https://pastebin.com/k80HV5N5 bungeesetting server A: https://pastebin.com/FjMa3Zx3 config server A: https://pastebin.com/7i1r9W01 SpecialReward both: https://pastebin.com/X7CLLnFf

BenCodez commented 8 months ago
  1. Not sure what you mean by this
  2. I need some more info on this. Enable debug on bungee and set debuglevel to EXTRA on your 2 servers and do some votes and send the logs
  3. Option for that in bungeesettings.yml
hiiamken commented 8 months ago

Part 3 is in which section? Currently the voteparty on the 2 servers is synchronizing. How to increase the voteparty on each server is different

BenCodez commented 8 months ago

VoteParty? You said milestones?

hiiamken commented 8 months ago

voteparty I just discovered it just now and want to ask more

hiiamken commented 8 months ago

I mean what part in bungeesetting about milestones and how to fix it with voteparty

BenCodez commented 8 months ago

milestones and vote party are 2 different things. What are you asking about it?

hiiamken commented 8 months ago

I want to ask about milestone like the third question and the new problem is about voteparty, it also increases equally on both servers so I want to ask you both.

BenCodez commented 8 months ago

voteparty is a per server reward. There is a bungee vote party but that differs from the per server vote party.

hiiamken commented 8 months ago

i know that, you can see the yml files i sent. I use voteparty for each server, but what I mean is that when a player successfully votes, the vote party milestone will increase on all servers instead of just the server where the player voted successfully. Previously I used, when players vote offline and then they join the server first, that server will increase the voteparty and they receive rewards only on that server. Now when they receive rewards on all servers and the voteparty also naturally increases

hiiamken commented 8 months ago

I have now reset it but there is one problem. I have 2 servers A and B, when players vote offline -> go to server B first, there is no notification of successful vote -> when switching to server A, they get a notification of successful vote. I need the following 3 things

  1. Offline voting will only receive 1 server cluster (first when participating)
  2. Vote is only counted for 1 server
  3. Voting milestones on each server are different (Currently synchronized)

Can you answer me the above 3 questions?

That's what my question number 1 means

BenCodez commented 8 months ago

Disable sendtoallservers on bungee if that's what you want.

hiiamken commented 8 months ago

Okay how about the milestone. I want milestones to only be received on 1 server

BenCodez commented 8 months ago

Disable this: PerServerMilestones: true

hiiamken commented 8 months ago

Tks i will turn on extra debug and send you log

hiiamken commented 8 months ago
Ảnh chụp Màn hình 2024-02-14 lúc 05 24 05

My server is currently having a problem: players are not showing up correctly and the console reports this. Does it affect votingplugin? Because coincidentally it crashed and some people couldn't vote for 2-3 days

BenCodez commented 8 months ago

Might not be helping at the very least

hiiamken commented 8 months ago
Ảnh chụp Màn hình 2024-02-14 lúc 05 57 33

Does this file save player uuid data, I don't see bedrock players with prefix .

BenCodez commented 8 months ago

Did you set the prefix in the configs? https://github.com/BenCodez/VotingPlugin/wiki/Bedrock-Player-Support

hiiamken commented 8 months ago
Ảnh chụp Màn hình 2024-02-14 lúc 07 01 24

yes, i thought it default

hiiamken commented 8 months ago
Ảnh chụp Màn hình 2024-02-14 lúc 07 02 18
BenCodez commented 8 months ago

Do bedrock players votes work?

hiiamken commented 8 months ago

Not now, but before it was normal

BenCodez commented 8 months ago

Do they login before voting?

hiiamken commented 8 months ago

In the past, they often voted offline and then went to the server because they used their phones

hiiamken commented 8 months ago

They cannot vote while playing on the server

BenCodez commented 8 months ago

They joined atleast once before voting? Bedrock support is still 50/50 but it works most of the time

hiiamken commented 8 months ago

It worked with online vote https://controlc.com/8ed85bb7

hiiamken commented 8 months ago
Ảnh chụp Màn hình 2024-02-14 lúc 07 20 51

I still don't see the name in this file. How to reset this file even though I deleted it but it's still the same when restarting

BenCodez commented 8 months ago

Resetting the file makes no difference. Wanna try this build? https://bencodez.com/job/VotingPlugin/

hiiamken commented 8 months ago

I'm still using it, I just updated about 6 hours ago

hiiamken commented 8 months ago

I mean I want to reset the old uuid

BenCodez commented 8 months ago

What do you mean by that?

hiiamken commented 8 months ago

I want to try deleting the player's old uuid data and so that when the player logs in, they will have a current uuid that can be either online or offline.

hiiamken commented 8 months ago

I deleted the data in mysql and it successfully voted with some nicks that could not vote before

BenCodez commented 8 months ago

I think you still are having mixed uuids, you should be having online uuids only

hiiamken commented 8 months ago

If I turn off onlinemode in votingplugin, what error will occur?

BenCodez commented 8 months ago

Probably be worst since offline mode isn't really supported (or really working well) in votingplugin

hiiamken commented 8 months ago

Will it be better supported in the future?

BenCodez commented 8 months ago

Don't think so, too many issues arise

BenCodez commented 8 months ago

Can try and see, but no promises

hiiamken commented 8 months ago

I used the command "av Test MvB_XxShinxX Servers-Minecraft 1", but the player named MvB_XxShinxX voted without any results.

hiiamken commented 8 months ago

https://controlc.com/24a6c9bc