changed stuff for whitelistkick
This commit is contained in:
parent
6100adaf93
commit
1a70fd4fd4
|
|
@ -45,7 +45,7 @@ dependencies {
|
||||||
// MySQL
|
// MySQL
|
||||||
runtimeOnly("mysql:mysql-connector-java:8.0.23")
|
runtimeOnly("mysql:mysql-connector-java:8.0.23")
|
||||||
// ShutdownInfo
|
// ShutdownInfo
|
||||||
compileOnly("org.example:ShutdownInfo:1.0-SNAPSHOT")
|
compileOnly("com.alttd:ShutdownInfo:1.0")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ public class WhitelistKick {
|
||||||
DiscordLink.getPlugin().getCache()
|
DiscordLink.getPlugin().getCache()
|
||||||
.cacheCode(player.getUniqueId(), authCode);
|
.cacheCode(player.getUniqueId(), authCode);
|
||||||
|
|
||||||
event.appendTemplates(Template.of("code", authCode));
|
event.appendTemplate(Template.of("code", authCode));
|
||||||
event.appendMessage("\n\n" + Config.WHITELIST_LINK_MESSAGE);
|
event.appendMessage("\n\n" + Config.WHITELIST_LINK_MESSAGE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user