Fixed SuperbVote related NoSuchMethodErrors

This commit is contained in:
Rsl1122 2018-02-23 10:28:05 +02:00
parent cf2f0299bd
commit ec6fb4106e
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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;
}