GithubHelp home page GithubHelp logo

georgev220 / voterewards-5.2.2_snapshot Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 1.12 MB

Home Page: https://www.mc-market.org/resources/9094/

License: GNU General Public License v3.0

Java 100.00%
spigot-api bukkit-api minecraft minecraft-plugin spigot-plugin

voterewards-5.2.2_snapshot's Introduction

VoteRewards

Vote Rewards is a simple plugin to reward your players when they vote for your server. Vote Rewards contains many features like daily vote rewards and voteparty. I promise that the Vote Rewards will not cause problems to your server and if you have a bug you can report it to the Discussion section, send me a private message or open an issue here

I uploaded the source code so that everyone can make their own modifications

You can use the source code to do whatever you want but do not upload sell it or upload it without my permission (except github)

Adding VoteRewards as a dependency to your build system

Maven

You can have your project depend on VoteRewards as a dependency through the following code snippets:

<project>
    <repositories>
        <repository>
            <id>JitPack</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.GeorgeV220</groupId>
            <artifactId>voterewards</artifactId>
            <version>latest tag</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
</project>

Gradle

You can include VoteRewards into your gradle project using the following lines:

repositories {
    maven {
        url 'https://jitpack.io'
    }
}

dependencies {
    compileOnly "com.github.GeorgeV220:voterewards:latest tag"
}

Building VoteRewards

VoteRewards can be built by running the following: mvn package. The resultant jar is built and written to target/voterewards-{version}.jar.

The build directories can be cleaned instead using the mvn clean command.

If you want to clean (install) and build the plugin use mvn clean package (or mvn clean install package) command.

Contributing

VoteRewards is an open source GNU General Public License v3.0 licensed project. I accept contributions through pull requests, and will make sure to credit you for your awesome contribution.

voterewards-5.2.2_snapshot's People

Contributors

dependabot[bot] avatar georgev220 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

voterewards-5.2.2_snapshot's Issues

[BUG] Plugin gives incorrect player at vote

Describe the bug
Sometimes %player% doesn't update when new player votes and reward goes to random player (maybe who previously voted).

To Reproduce
I don't really know how to reproduce it. It sometimes gives reward to correct player but sometimes to someone else.

Expected behavior
%player% should update currectly with every player vote.

Screenshots
https://prnt.sc/1r1re8z

Server Info (please complete the following information):
Minecraft 1.17.1 (Purpur-1368)
Java 16
VoteRewards v5.1.0
NuVotifier v2.7.3

Votetop footer and placeholders.

I know it's holidays atm, so if you see this. Feel free to ignore it and relax during the holidays for now ๐Ÿ˜„

I really like the new features in the 4.x updates. The hologram addition is pretty awesome!
And it's good to see that the amount of top voters can be customized now.

Votetop footer
I'm having some issues trying to disable the votetop footer. I tried making it empty or putting [] in the config.
The first attempt resulted in an empty line and the second attempt resulted in a NULL error.
I would love to see a way to disable it in the future.

Placeholders
Then there's the placeholders:
voterewards_total_votes voterewards_votes_needed voterewards_votes_until voterewards_player_votes voterewards_top_voter

They seem to be pretty broken atm. total_votes and player_votes returns 0 for me, no matter how many votes a person has. top_voter seems to be the only one working. And I'm not even sure what votes_needed and votes_until are supposed to do. Are they related to cumulative voting? vote parties?
I would really like to use placeholders elsewhere. So I would also love to see this fixed in the future as well.

Thank you for your work on this plugin and happy holidays!

[BUG] Warn when player joins

Describe the bug
When a player joins the server this warn shows up

To Reproduce
Steps to reproduce the behavior: just join the server

Expected behavior
A clear and concise description of what you expected to happen.
No warnings?

Screenshots
If applicable, add screenshots to help explain your problem.

Server Info (please complete the following information):

  • OS: [e.g. Ubuntu 18.04] ubuntu 20.04
  • Java Version [e.g. OpenJDK 8] amazon corretto 17
  • Minecraft Server [e.g. 1.12.2] paper 1.18.1 build 136

Additional context
https://pastebin.com/Lq5xfwhi

[BUG] Cannot disable Reminder

Describe the bug
Reminder is still set to false and still reminding me in a shorter time than set

To Reproduce
Paper server running the latest version of VoteRewards

Expected behavior
Vote reminders disable or take longer

Screenshots
If applicable, add screenshots to help explain your problem.

Server Info (please complete the following information):

  • OS: [e.g. Ubuntu 18.04] Unknown Pebblehost
  • Java Version [e.g. OpenJDK 8] 16
  • Minecraft Server [e.g. 1.12.2] Paper 1.17.1

Additional context
Add any other context about the problem here.

Wiki Bug

In the wiki, under softdepends, there is 2 of the same thing

PlaceholderAPI
MVdWPlaceholderAPI
AuthMeReloaded
WorldEdit or FastAsyncWorldEdit
**PlaceholderAPI**

Why is there 2 of the same thing?

Daily Votes (ex: [BUG] (Solved) Could not pass VotifierEvent to VoteRewards v4.3.2)

Describe the bug
An error occurs when VotingPlugin sends an event to VoteRewards on 1.16.5

To Reproduce
Run a 1.16.5 PaperMC Minecraft server, set the plugin up, and do /fakevote. Items are received, but there are no "thanks for voting" message. There's an error in the console.

Expected behavior
I expected it to print the correct message and not throw out an error.

Screenshots
https://i.imgur.com/Kzq5EtY.png
https://i.imgur.com/RdGUOLR.png

Server Info (please complete the following information):

  • OS: [e.g. Ubuntu 18.04] Latest Ubuntu
  • Java Version [e.g. OpenJDK 8] Java 11
  • Minecraft Server [e.g. 1.12.2] 1.16.5 PaperMC

Additional context
There's nothing to add. Thank you in advance for your help.

java.lang.NullPointerException

Describe the bug
NullPointerException

To Reproduce
Have a player join the server

Expected behavior
Not have an NPE error fill the console lol

Server Info (please complete the following information):

  • OS: Windows 10 Pro (Server is being locally run)
  • Java Version: AdoptOpenJDK jdk-16.0.1.9
  • Minecraft Server: Airplane #55 1.17.1

Additional Context
It's worth noting that the server is being connected to from a Velocity 3.0.0 proxy, running this setup locally as I'm creating a network for the first time from scratch and friends are helping build stuff.

It should also be noted that I have not configured VoteRewards, or really any plugin yet on this instance for that matter.

Here is the error log:

[12:51:34 WARN]: java.lang.NullPointerException
[12:51:34 WARN]:        at java.base/java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
[12:51:34 WARN]:        at java.base/java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
[12:51:34 WARN]:        at com.georgev22.voterewards.externals.utilities.maps.ConcurrentObjectMap.append(ConcurrentObjectMap.java:43)
[12:51:34 WARN]:        at com.georgev22.voterewards.utilities.player.UserVoteData$FileUserUtils$1.onSuccess(UserVoteData.java:697)
[12:51:34 WARN]:        at com.georgev22.voterewards.utilities.player.UserVoteData$FileUserUtils.setupUser(UserVoteData.java:766)
[12:51:34 WARN]:        at com.georgev22.voterewards.utilities.player.UserVoteData$FileUserUtils.load(UserVoteData.java:693)
[12:51:34 WARN]:        at com.georgev22.voterewards.utilities.player.UserVoteData.load(UserVoteData.java:280)
[12:51:34 WARN]:        at com.georgev22.voterewards.listeners.PlayerListeners.onJoin(PlayerListeners.java:48)
[12:51:34 WARN]:        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor789.execute(Unknown Source)
[12:51:34 WARN]:        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69)
[12:51:34 WARN]:        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76)
[12:51:34 WARN]:        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[12:51:34 WARN]:        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:624)
[12:51:34 WARN]:        at net.minecraft.server.players.PlayerList.postChunkLoadJoin(PlayerList.java:360)
[12:51:34 WARN]:        at net.minecraft.server.players.PlayerList.lambda$placeNewPlayer$1(PlayerList.java:302)
[12:51:34 WARN]:        at net.minecraft.server.network.PlayerConnection.tick(PlayerConnection.java:307)
[12:51:34 WARN]:        at net.minecraft.network.NetworkManager.a(NetworkManager.java:555)
[12:51:34 WARN]:        at net.minecraft.server.network.ServerConnection.c(ServerConnection.java:196)
[12:51:34 WARN]:        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1643)
[12:51:34 WARN]:        at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:482)
[12:51:34 WARN]:        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1465)
[12:51:34 WARN]:        at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1261)
[12:51:34 WARN]:        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:317)
[12:51:34 WARN]:        at **java.base/java.lang.Thread.run(Thread.java:831)**

VoteRewards #29 failed

Build 'VoteRewards' is failing!

Last 50 lines of build output:

[...truncated 5.22 KB...]
Downloading from georgev22-snapshot: https://artifactory.georgev22.com/artifactory/libs-snapshot/fr/xephi/authme/5.6.0-SNAPSHOT/maven-metadata.xml
Downloading from placeholderapi: http://repo.extendedclip.com/content/repositories/placeholderapi/fr/xephi/authme/5.6.0-SNAPSHOT/maven-metadata.xml
Downloading from bintray-repo: https://dl.bintray.com/ichbinjoe/public/fr/xephi/authme/5.6.0-SNAPSHOT/maven-metadata.xml
Downloading from codemc-repo: https://repo.codemc.io/repository/maven-public/fr/xephi/authme/5.6.0-SNAPSHOT/maven-metadata.xml
Progress (1): 1.4 kB                    Downloaded from codemc-repo: https://repo.codemc.io/repository/maven-public/fr/xephi/authme/5.6.0-SNAPSHOT/maven-metadata.xml (1.4 kB at 7.5 kB/s)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ VoteRewards ---
[INFO] Deleting /var/jenkins_home/workspace/VoteRewards/target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ VoteRewards ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ VoteRewards ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 40 source files to /var/jenkins_home/workspace/VoteRewards/target/classes
[INFO] /var/jenkins_home/workspace/VoteRewards/src/main/java/com/georgev22/voterewards/utilities/player/UserVoteData.java: Some input files use or override a deprecated API.
[INFO] /var/jenkins_home/workspace/VoteRewards/src/main/java/com/georgev22/voterewards/utilities/player/UserVoteData.java: Recompile with -Xlint:deprecation for details.
[INFO] /var/jenkins_home/workspace/VoteRewards/src/main/java/com/georgev22/voterewards/utilities/Assertions.java: Some input files use unchecked or unsafe operations.
[INFO] /var/jenkins_home/workspace/VoteRewards/src/main/java/com/georgev22/voterewards/utilities/Assertions.java: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /var/jenkins_home/workspace/VoteRewards/src/main/java/com/georgev22/voterewards/VoteRewardPlugin.java:[3,65] package com.georgev22.externals.com.tchristofferson.configupdater does not exist
[ERROR] /var/jenkins_home/workspace/VoteRewards/src/main/java/com/georgev22/voterewards/VoteRewardPlugin.java:[78,13] cannot find symbol
  symbol:   variable ConfigUpdater
  location: class com.georgev22.voterewards.VoteRewardPlugin
[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.608 s
[INFO] Finished at: 2021-02-16T23:11:55Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project VoteRewards: Compilation failure: Compilation failure: 
[ERROR] /var/jenkins_home/workspace/VoteRewards/src/main/java/com/georgev22/voterewards/VoteRewardPlugin.java:[3,65] package com.georgev22.externals.com.tchristofferson.configupdater does not exist
[ERROR] /var/jenkins_home/workspace/VoteRewards/src/main/java/com/georgev22/voterewards/VoteRewardPlugin.java:[78,13] cannot find symbol
[ERROR]   symbol:   variable ConfigUpdater
[ERROR]   location: class com.georgev22.voterewards.VoteRewardPlugin
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Build step 'Invoke top-level Maven targets' marked build as failure
Archiving artifacts

Changes since last successful build:

  • [George V.] a8e56c1 - Latest changes.

View full output

Votetop and Lucky Vote

Hello. Some months back I asked if it was possible to set the amount of people shown in the /vtop command. You said you would re-add it to the plugin, but after 4 months, it hasn't been added.
Just wanted to ask again, if you could please add this feature back ๐Ÿ˜„

Also, it seems that the Lucky vote is broken. It doesn't really matter what value you put as the chance. It's always around 1%
(Ex. if I set it to 10. It's not 10% but still 1%. If I set it to 50, it's also around 1%). Not sure what's going on with that.

I'm using the latest official version: 3.3.6

[BUG]

Describe the bug
I see an alert on the console, what does it mean?

Screenshots
I have attached server log file

Server Info (please complete the following information):
I have the server hosted on a hosting called Scalacube

  • OS: [5.5.62-0ubuntu0.14.04.1 - (Ubuntu)] I have obtained this information from PhpMyAdmin
  • Java Version [Java 11]
  • Minecraft Server [git-Paper-551 (MC: 1.16.5)]

Additional context
I also have the problem that people who vote do not receive rewards

latest (2).log

Adding vote sites

Please excuse me if this a dumb issue but I can't figure out how exactly to add a vote site. Any help? thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.