mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-27 02:21:30 +01:00
Fixed SuperbVote related NoSuchMethodErrors
This commit is contained in:
parent
cf2f0299bd
commit
ec6fb4106e
@ -165,7 +165,7 @@
|
||||
<dependency>
|
||||
<groupId>io.minimum</groupId>
|
||||
<artifactId>minecraft.superbvote</artifactId>
|
||||
<version>0.3.4</version>
|
||||
<version>0.4.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -32,7 +32,7 @@ public class SuperbVoteData extends PluginData {
|
||||
|
||||
@Override
|
||||
public InspectContainer getPlayerData(UUID uuid, InspectContainer inspectContainer) {
|
||||
int votes = store.getVotes(uuid);
|
||||
int votes = store.getVotes(uuid).getVotes();
|
||||
|
||||
inspectContainer.addValue(getWithIcon("Votes", "check", "teal"), votes);
|
||||
|
||||
@ -44,7 +44,7 @@ public class SuperbVoteData extends PluginData {
|
||||
Map<UUID, Integer> votes = new HashMap<>();
|
||||
long total = 0;
|
||||
for (UUID uuid : uuids) {
|
||||
int votesCount = store.getVotes(uuid);
|
||||
int votesCount = store.getVotes(uuid).getVotes();
|
||||
votes.put(uuid, votesCount);
|
||||
total += votesCount;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user