BenCodez / VotifierPlus

Fork of votifier
14 stars 6 forks source link

Bug: Unable to receive cmi rewards #50

Closed wling-art closed 6 months ago

wling-art commented 6 months ago

The plugin doesn't seem to be able to notify the cmi, or the cmi can't do the rewards, in short I know VotifierPlus is working but I'm not receiving a corresponding response! I've also invited other people who run my world servers to test it and the results are the same.

BenCodez commented 6 months ago

https://github.com/BenCodez/VotingPlugin/wiki/Votifier-Troubleshooting Check this

wling-art commented 6 months ago

https://github.com/BenCodez/VotingPlugin/wiki/Votifier-Troubleshooting Check this

I have detected and turned on cmi related functions, but there is no response.

Plug-ins can receive information, but cmi can't and can't reward them.

BenCodez commented 6 months ago

Do you get the console log message of a vote?

wling-art commented 6 months ago

I didn't get about the vote display, it appears to be hidden, but I can confirm that I have been prompted for the vote when I use Forwarding. Overall I can make sure that VotifierPlus has received it, it just doesn't prompt.

BenCodez commented 6 months ago

Send the console log after a vote

wling-art commented 6 months ago

No, it doesn't have a log to show.

BenCodez commented 6 months ago

If you get nothing then votifier isn't receiving the vote. https://github.com/BenCodez/VotingPlugin/wiki/Votifier-Troubleshooting

wling-art commented 6 months ago

I was using extra mode to find an error and after the first one I couldn't receive any more voting messages .

> plugman restart VotifierPlus
[02:33:23 INFO]: [VotifierPlus] Disabling VotifierPlus v1.2
[02:33:23 INFO]: [VotifierPlus] Votifier disabled.
[02:33:23 INFO]: [VotifierPlus] Enabling VotifierPlus v1.2
[02:33:23 WARN]: Enabled plugin with unregistered ConfiguredPluginClassLoader VotifierPlus v1.2
[02:33:23 INFO]: [VotifierPlus] Debug: Detected using spigot
[02:33:23 INFO]: [VotifierPlus] Debug: Server in offline mode
[02:33:23 INFO]: [VotifierPlus] Debug: Clearing cache: 0
[02:33:23 INFO]: [VotifierPlus] Debug: Not loading userdata
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (AllPlayer)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (Player)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (PlayerExact)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (uuid)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (Boolean)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (List)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (String)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (Text)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (Number)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (Reward)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (ChoiceReward)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (RequestMethod)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (UserStorage)
[02:33:23 INFO]: [VotifierPlus] Debug: Tabcompletehandle not added, one already exists for (TimeType)
[02:33:23 INFO]: [VotifierPlus] Debug: Not loading PostPlayerShowEvent
[02:33:23 INFO]: [VotifierPlus] Debug: Using AdvancedCore '3.7.3' built on '2024-02-11 18:54'  Spigot Version: git-Purpur-2095 (MC: 1.20.2) Total RAM: 8192 Free RAM: 4882
[02:33:23 INFO]: [VotifierPlus] Debug: Debug Level: EXTRA
[02:33:23 INFO]: [VotifierPlus] Debug: 0.0.0.0:2131
[02:33:23 INFO]: [VotifierPlus] Votifier enabled.
[02:33:23 INFO]: [VotifierPlus] Using dev build, this is not a stable build, use at your own risk. Build number: NOTSET
[02:33:23 INFO]: [VotifierPlus] ExtraDebug: Checking directlydefined rewards for sub rewards
[02:33:23 INFO]: [VotifierPlus] ExtraDebug: Checking reward file for sub rewards
[02:33:23 INFO]: [PlugMan] VotifierPlus 现已重新启动
[02:33:23 INFO]: [VotifierPlus] Debug: PlaceholderAPI found, will attempt to parse placeholders
[02:33:23 INFO]: [VotifierPlus] CMI found, loading hook
[02:33:28 INFO]: [VotifierPlus] Successfully hooked into vault economy!
[02:33:28 INFO]: [VotifierPlus] Hooked into vault permissions
[02:33:28 INFO]: [VotifierPlus] VotifierPlus is up to date! Version: 1.2
[02:34:32 INFO]: [VotifierPlus] Debug: Received vote record -> Vote (from:MCServerTime username:wlingzhenyu address:103.171.177.196 timeStamp:1711218871)
[02:34:32 WARN]: Exception in thread "Votifier I/O" java.lang.NoClassDefFoundError: com/vexsoftware/votifier/VotifierPlus$2$1
[02:34:32 WARN]:        at [V][点赞通知]VotifierPlus.jar//com.vexsoftware.votifier.VotifierPlus$2.callEvent(VotifierPlus.java:190)
[02:34:32 WARN]:        at [V][点赞通知]VotifierPlus.jar//com.vexsoftware.votifier.net.VoteReceiver.run(VoteReceiver.java:217)
[02:34:32 WARN]: Caused by: java.lang.ClassNotFoundException: com.vexsoftware.votifier.VotifierPlus$2$1
[02:34:32 WARN]:        ... 2 more
BenCodez commented 6 months ago

Redownload the jar?

wling-art commented 6 months ago

Redownload the jar?

Oh, looks like I may have corrupted the plugin. I re-downloaded the plugin, but the cmi still won't receive the vote info and give feedback. Here are the relevant settings for my cmi:

Votifier:
  # When set to true votifier votes will be counted for player
  CountVotes: true
  # Number of votes one IP can make in last 24 hours
  # Set it to 0 to have unlimited amount
  MaxVotesInADay: 0
  # Cooldown between votes from same service
  # In most cases voting service will have its own cooldown setup
  # But if you need extra one to prevent rapid voting you can define time in seconds over here
  GeneralCooldown: 0
  # When set to false, commands on sucessfull vote will not be performed
  PerformCommands: true
  # Defines commands to be performed when player votes
  # Supports specialized commands and placeholders
  # [serviceName] variable can be used to insert address
  CommandsOnVote:
  - cmi broadcast !&6[playerDisplayName] &evoted!
  - cmi give [playerName] diamond
  # Keep it at false if you dont want to give out extra rewards
  ExtraRewardsEnabled: false
  # Commands will be performed when player collect determined amount of votes
  ExtraRewards:
    '10':
    - cmi heal [playerName]
    - cmi money give [playerName] 100
    '100':
    - cmi heal [playerName]
    - cmi money give [playerName] 1000
    - cmi give [playerName] diamond 32
  # List of players to be excluded from top voter list
  ExcludeList:
  - None
BenCodez commented 6 months ago

Do you get anything in the log when you do a vote? If not then you might have to figure out what the exact problem is. If you have a host ask them

wling-art commented 6 months ago

I can get the vote info while debugging, but the cmi doesn't respond.


> plugman load VotifierPlus
[06:27:41 INFO]: [VotifierPlus] Loading server plugin VotifierPlus v1.2
[06:27:41 INFO]: [VotifierPlus] Enabling VotifierPlus v1.2
[06:27:42 INFO]: [VotifierPlus] Debug: Clearing cache: 0
[06:27:42 INFO]: [VotifierPlus] Debug: Not loading userdata
[06:27:42 INFO]: [VotifierPlus] Debug: Not loading PostPlayerShowEvent
[06:27:42 INFO]: [VotifierPlus] Debug: Using AdvancedCore '3.7.3' built on '2024-02-11 18:54'  Spigot Version: git-Purpur-2095 (MC: 1.20.2) Total RAM: 8192 Free RAM: 5361
[06:27:42 INFO]: [VotifierPlus] Debug: Debug Level: EXTRA
[06:27:42 INFO]: [VotifierPlus] Debug: 0.0.0.0:2131
[06:27:42 INFO]: [VotifierPlus] Votifier enabled.
[06:27:42 INFO]: [VotifierPlus] Using dev build, this is not a stable build, use at your own risk. Build number: NOTSET
[06:27:42 INFO]: [VotifierPlus] ExtraDebug: Checking directlydefined rewards for sub rewards
[06:27:42 INFO]: [VotifierPlus] ExtraDebug: Checking reward file for sub rewards
[06:27:42 INFO]: [PlugMan] VotifierPlus 已加载并启用
[06:27:42 INFO]: [VotifierPlus] CMI found, loading hook
[06:27:42 INFO]: [VotifierPlus] Debug: PlaceholderAPI found, will attempt to parse placeholders
[06:27:46 INFO]: [VotifierPlus] Successfully hooked into vault economy!
[06:27:46 INFO]: [VotifierPlus] Hooked into vault permissions
[06:27:47 INFO]: [VotifierPlus] VotifierPlus is up to date! Version: 1.2
[06:28:37 INFO]: [VotifierPlus] Debug: Received vote record -> Vote (from:mczfw.cn username:wlingzhenyu address:120.231.175.253 timeStamp:1711232917)
BenCodez commented 6 months ago

Wanna try nuvotifier and see if that changes anything?

wling-art commented 6 months ago

That plugin is working fine, it's all my pro-voting plugins getting up and running!

BenCodez commented 6 months ago

I don't provide support for anything other than my plugins, from the log you sent above it appears votifierplus is working

wling-art commented 6 months ago

But the problem is that Nuvotifier can notify other plugins that it's normal, but VotifierPlus won't. That is, there are no plugins listening to VotifierPlus at all, but with Nuvotifier, there are some plugins listening.

wling-art commented 6 months ago

Problems similar to https://github.com/BenCodez/VotifierPlus/issues/48

BenCodez commented 6 months ago

VotingPlugin works just fine with VotifierPlus, it's using the same event as nuvotifier, so unless the listening plugins are only working if certain votifier plugins are active there isn't much I can do

wling-art commented 6 months ago

Well, things are as you say they are. Let's close this issue then.