diff --git a/.gitignore b/.gitignore
new file mode 100755
index 0000000..4788b4b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,113 @@
+# User-specific stuff
+.idea/
+
+*.iml
+*.ipr
+*.iws
+
+# IntelliJ
+out/
+
+# Compiled class file
+*.class
+
+# Log file
+*.log
+
+# BlueJ files
+*.ctxt
+
+# Package Files #
+*.jar
+*.war
+*.nar
+*.ear
+*.zip
+*.tar.gz
+*.rar
+
+# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
+hs_err_pid*
+
+*~
+
+# temporary files which can be created if a process still has a handle open of a deleted file
+.fuse_hidden*
+
+# KDE directory preferences
+.directory
+
+# Linux trash folder which might appear on any partition or disk
+.Trash-*
+
+# .nfs files are created when an open file is removed but is still being accessed
+.nfs*
+
+# General
+.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+Icon
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+.com.apple.timemachine.donotpresent
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
+
+# Windows thumbnail cache files
+Thumbs.db
+Thumbs.db:encryptable
+ehthumbs.db
+ehthumbs_vista.db
+
+# Dump file
+*.stackdump
+
+# Folder config file
+[Dd]esktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Windows Installer files
+*.cab
+*.msi
+*.msix
+*.msm
+*.msp
+
+# Windows shortcuts
+*.lnk
+
+target/
+
+pom.xml.tag
+pom.xml.releaseBackup
+pom.xml.versionsBackup
+pom.xml.next
+
+release.properties
+dependency-reduced-pom.xml
+buildNumber.properties
+.mvn/timing.properties
+.mvn/wrapper/maven-wrapper.jar
+.flattened-pom.xml
+
+# Common working directory
+run/
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..e69de29
diff --git a/pom.xml b/pom.xml
new file mode 100755
index 0000000..9c91653
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,115 @@
+
+
+ 4.0.0
+
+ themixray
+ monitoring-reward
+ 1.0
+ jar
+
+ Monitoring Reward
+
+ Monitoring Rewards
+
+ 1.8
+ UTF-8
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-resources-plugin
+
+
+ jar
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+ 3.8.1
+
+ 17
+ 17
+
+
+
+ org.apache.maven.plugins
+ maven-shade-plugin
+ 3.2.4
+
+
+ package
+
+ shade
+
+
+ false
+
+
+
+
+
+
+
+ src/main/resources
+ true
+
+
+
+
+
+
+ spigotmc-repo
+ https://hub.spigotmc.org/nexus/content/repositories/snapshots/
+
+
+ sonatype
+ https://oss.sonatype.org/content/groups/public/
+
+
+ jitpack.io
+ https://jitpack.io
+
+
+ codemc-repo
+ https://repo.codemc.org/repository/maven-public/
+ default
+
+
+ enginehub-maven
+ https://maven.enginehub.org/repo/
+
+
+
+
+
+ org.spigotmc
+ spigot-api
+ 1.20.1-R0.1-SNAPSHOT
+ provided
+
+
+ com.github.MilkBowl
+ VaultAPI
+ 1.7
+ provided
+
+
+ com.ssomar.score
+ SCore
+ 4.24.2.14
+ system
+ ${project.basedir}/src/main/resources/SCore.jar
+
+
+ de.tr7zw
+ item-nbt-api-plugin
+ 2.12.0
+
+
+
diff --git a/src/main/java/ru.froggymonitor/rewardplugin/FormDataHandler.java b/src/main/java/ru.froggymonitor/rewardplugin/FormDataHandler.java
new file mode 100755
index 0000000..8b49514
--- /dev/null
+++ b/src/main/java/ru.froggymonitor/rewardplugin/FormDataHandler.java
@@ -0,0 +1,65 @@
+package themixray.monitoringreward;
+
+import com.google.common.base.Charsets;
+import com.sun.net.httpserver.Headers;
+import com.sun.net.httpserver.HttpExchange;
+import com.sun.net.httpserver.HttpHandler;
+import org.json.simple.parser.JSONParser;
+import org.json.simple.parser.ParseException;
+
+import java.io.IOException;
+import java.net.URLDecoder;
+import java.util.*;
+
+public abstract class FormDataHandler implements HttpHandler {
+ @Override
+ public void handle(HttpExchange httpExchange) throws IOException {
+ Headers headers = httpExchange.getRequestHeaders();
+ String contentType = headers.getFirst("Content-Type");
+ String data = new String(httpExchange.getRequestBody().readAllBytes());
+ Map params = new HashMap<>();
+
+ if (contentType.startsWith("multipart/form-data")) {
+ String boundary = "--" + contentType.substring(contentType.indexOf("boundary=") + 9) + "\r\n";
+ for (String part : data.split(boundary)) {
+ String[] lines = part.split("\r\n");
+ if (lines.length >= 3) {
+ if (lines[0].startsWith("Content-Disposition: form-data; name=\"")) {
+ String name = lines[0].substring("Content-Disposition: form-data; name=\"".length());
+ name = name.substring(0, name.length() - 1);
+ String value = lines[2];
+ params.put(name, value);
+ }
+ }
+ }
+ } else if (contentType.startsWith("application/json")) {
+ try {
+ Object o = new JSONParser().parse(data);
+ if (o instanceof Map) {
+ for (Map.Entry