This repository has been archived by the owner on Sep 27, 2022. It is now read-only.
forked from mattmalec/KSoft4J
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Manually added bans from KSoft admins have null mod IDs, making getModId() hang forever
- Loading branch information
1 parent
57c8bc0
commit d2c6677
Showing
4 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 20 additions & 20 deletions
40
src/main/java/net/explodingbush/ksoftapi/enums/Routes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package net.explodingbush.ksoftapi.enums; | ||
|
||
public enum Routes { | ||
|
||
BAN_ADD("https://api.ksoft.si/bans/add"), | ||
BAN_INFO("https://api.ksoft.si/bans/info?user="), | ||
BAN_LIST("https://api.ksoft.si/bans/list?per_page="), | ||
IMAGE("https://api.ksoft.si/images/random-image?tag=%s&nsfw=%s"), | ||
WIKIHOW("https://api.ksoft.si/images/random-wikihow?nsfw=%s"), | ||
REDDIT("https://api.ksoft.si/meme/"); | ||
|
||
private final String route; | ||
|
||
private Routes(String route){ | ||
this.route = route; | ||
} | ||
public String toString(){ | ||
return this.route; | ||
} | ||
} | ||
package net.explodingbush.ksoftapi.enums; | ||
|
||
public enum Routes { | ||
|
||
BAN_ADD("https://api.ksoft.si/bans/add"), | ||
BAN_INFO("https://api.ksoft.si/bans/info?user="), | ||
BAN_LIST("https://api.ksoft.si/bans/list?per_page="), | ||
IMAGE("https://api.ksoft.si/images/random-image?tag=%s&nsfw=%s"), | ||
WIKIHOW("https://api.ksoft.si/images/random-wikihow?nsfw=%s"), | ||
REDDIT("https://api.ksoft.si/meme/"); | ||
|
||
private final String route; | ||
|
||
private Routes(String route){ | ||
this.route = route; | ||
} | ||
public String toString(){ | ||
return this.route; | ||
} | ||
} |