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