Best commit ;)

This commit is contained in:
GregTCLTK 2020-01-09 16:55:05 +01:00
parent c82daf0fba
commit c559c9cb56
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
3 changed files with 10 additions and 6 deletions

View file

@ -133,7 +133,10 @@ public class Rethink {
} }
public void insertUser(String id) { 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) { public void setBlackListed(String id, String commands) {

View file

@ -52,6 +52,7 @@ public class TrackManager extends AudioEventAdapter {
this.lastTrack = track; this.lastTrack = track;
Guild g = queue.poll().getAuthor().getGuild(); Guild g = queue.poll().getAuthor().getGuild();
if (loop) { if (loop) {
player.playTrack(this.lastTrack.makeClone()); player.playTrack(this.lastTrack.makeClone());
} else if (queue.isEmpty()) { } else if (queue.isEmpty()) {
g.getAudioManager().closeAudioConnection(); g.getAudioManager().closeAudioConnection();