mirror of
https://github.com/xHyroM/lighteco.git
synced 2024-11-23 23:31:05 +01:00
Compare commits
No commits in common. "8519e2653245303e67de50cd27859443cd38f18f" and "6cd7ad090130e108deff1772a952652adf25fb61" have entirely different histories.
8519e26532
...
6cd7ad0901
2 changed files with 5 additions and 3 deletions
|
@ -22,9 +22,11 @@ public class OfflineUserSuggestionProvider implements SuggestionProvider<Command
|
||||||
CommandContext<CommandSource> context, SuggestionsBuilder builder) {
|
CommandContext<CommandSource> context, SuggestionsBuilder builder) {
|
||||||
LightEcoPlugin plugin = context.getSource().plugin();
|
LightEcoPlugin plugin = context.getSource().plugin();
|
||||||
|
|
||||||
|
String remaining = builder.getRemaining();
|
||||||
|
|
||||||
for (UUID uniqueId : plugin.getBootstrap().getOnlinePlayers()) {
|
for (UUID uniqueId : plugin.getBootstrap().getOnlinePlayers()) {
|
||||||
User user = plugin.getUserManager().getIfLoaded(uniqueId);
|
User user = plugin.getUserManager().getIfLoaded(uniqueId);
|
||||||
if (user == null || user.getUsername() == null) continue;
|
if (user == null) continue;
|
||||||
|
|
||||||
builder.suggest(user.getUsername());
|
builder.suggest(user.getUsername());
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven("https://repo.extendedclip.com/releases/")
|
maven("https://repo.extendedclip.com/content/repositories/placeholderapi")
|
||||||
|
|
||||||
maven("https://repo.papermc.io/repository/maven-public/")
|
maven("https://repo.papermc.io/repository/maven-public/")
|
||||||
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
||||||
|
@ -19,7 +19,7 @@ dependencies {
|
||||||
compileOnly("io.papermc.paper:paper-mojangapi:1.19.1-R0.1-SNAPSHOT")
|
compileOnly("io.papermc.paper:paper-mojangapi:1.19.1-R0.1-SNAPSHOT")
|
||||||
|
|
||||||
// PlaceholderAPI
|
// PlaceholderAPI
|
||||||
compileOnly("me.clip:placeholderapi:2.11.6")
|
compileOnly("me.clip:placeholderapi:2.11.3")
|
||||||
|
|
||||||
compileOnly("org.projectlombok:lombok:1.18.28")
|
compileOnly("org.projectlombok:lombok:1.18.28")
|
||||||
annotationProcessor("org.projectlombok:lombok:1.18.28")
|
annotationProcessor("org.projectlombok:lombok:1.18.28")
|
||||||
|
|
Loading…
Reference in a new issue