Best commit ;)
This commit is contained in:
parent
c82daf0fba
commit
c559c9cb56
3 changed files with 10 additions and 6 deletions
10
pom.xml
10
pom.xml
|
|
@ -26,11 +26,11 @@
|
|||
<artifactId>json</artifactId>
|
||||
<version>20190722</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.rethinkdb</groupId>
|
||||
<artifactId>rethinkdb-driver</artifactId>
|
||||
<version>2.3.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.rethinkdb</groupId>
|
||||
<artifactId>rethinkdb-driver</artifactId>
|
||||
<version>2.3.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
|
|
|
|||
|
|
@ -133,7 +133,10 @@ public class Rethink {
|
|||
}
|
||||
|
||||
public void insertUser(String id) {
|
||||
this.insert("user", r.hashMap("id", id).with("prefix", "h.").with("language", "en").with("blacklisted", "none"));
|
||||
this.insert("user", r.hashMap("id", id)
|
||||
.with("prefix", "h.")
|
||||
.with("language", "en")
|
||||
.with("blacklisted", "none"));
|
||||
}
|
||||
|
||||
public void setBlackListed(String id, String commands) {
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ public class TrackManager extends AudioEventAdapter {
|
|||
this.lastTrack = track;
|
||||
Guild g = queue.poll().getAuthor().getGuild();
|
||||
if (loop) {
|
||||
|
||||
player.playTrack(this.lastTrack.makeClone());
|
||||
} else if (queue.isEmpty()) {
|
||||
g.getAudioManager().closeAudioConnection();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue