Greg dev #319

Merged
greg6775 merged 4 commits from greg-dev into master 2020-01-13 19:35:44 +01:00
3 changed files with 16 additions and 16 deletions

View file

@ -30,7 +30,7 @@ jobs:
uses: garygrossgarten/github-action-scp@release
with:
local: ./target/Hadder-Build.jar
remote: /home/Bots/Hadder-Build.jar
remote: /home/Hadder-Build.jar
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
@ -41,7 +41,7 @@ jobs:
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: /home/Bots/deploy.sh
script: /home/deploy.sh
- name: Send Webhook Notification
if: always()
env:

16
pom.xml
View file

@ -15,6 +15,14 @@
<maven.compiler.target>1.13</maven.compiler.target>
</properties>
<repositories>
<repository>
<id>jcenter</id>
<name>jcenter-bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>net.dv8tion</groupId>
@ -53,14 +61,6 @@
</dependency>
</dependencies>
<repositories>
<repository>
<id>jcenter</id>
<name>jcenter-bintray</name>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<build>
<pluginManagement>
<plugins>

View file

@ -62,25 +62,25 @@ public class Rethink {
else return null;
}
public void update(String table, String value, String what, String whatvalue) {
public void update(String table, String where, String what, String value) {
try {
r.table(table).get(value).update(r.hashMap(what, whatvalue)).run(conn);
r.table(table).get(where).update(r.hashMap(what, value)).run(conn);
} catch (ClassCastException e) {
e.printStackTrace();
}
}
public void update(String table, String value, String what, int whatvalue) {
public void update(String table, String where, String what, int value) {
try {
r.table(table).get(value).update(r.hashMap(what, whatvalue)).run(conn);
r.table(table).get(where).update(r.hashMap(what, value)).run(conn);
} catch (ClassCastException e) {
e.printStackTrace();
}
}
public void update(String table, String value, String what, boolean whatvalue) {
public void update(String table, String where, String what, boolean value) {
try {
r.table(table).get(value).update(r.hashMap(what, whatvalue)).run(conn);
r.table(table).get(where).update(r.hashMap(what, value)).run(conn);
} catch (ClassCastException e) {
e.printStackTrace();
}