Greg dev #319
3 changed files with 16 additions and 16 deletions
4
.github/workflows/maven.yml
vendored
4
.github/workflows/maven.yml
vendored
|
|
@ -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
16
pom.xml
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue