mirror of
https://github.com/plexusorg/Module-Guilds.git
synced 2024-10-31 18:17:11 +00:00
Fix compilation errors due to API change
This commit is contained in:
parent
10b073a14b
commit
e3a3756c26
@ -16,7 +16,6 @@ import lombok.Getter;
|
|||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
|
||||||
//TODO: Implement mongodb
|
//TODO: Implement mongodb
|
||||||
@Getter
|
@Getter
|
||||||
public class Guilds extends PlexModule
|
public class Guilds extends PlexModule
|
||||||
@ -43,10 +42,13 @@ public class Guilds extends PlexModule
|
|||||||
{
|
{
|
||||||
getPlex().getMongoConnection().getDatastore().getMapper().map(Guild.class);
|
getPlex().getMongoConnection().getDatastore().getMapper().map(Guild.class);
|
||||||
getPlex().getMongoConnection().getDatastore().ensureIndexes();
|
getPlex().getMongoConnection().getDatastore().ensureIndexes();
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
SQLManager.makeTables();
|
SQLManager.makeTables();
|
||||||
sqlGuildManager = new SQLGuildManager();
|
sqlGuildManager = new SQLGuildManager();
|
||||||
sqlGuildManager.getGuilds().whenComplete((guilds, throwable) -> {
|
sqlGuildManager.getGuilds().whenComplete((guilds, throwable) ->
|
||||||
|
{
|
||||||
PlexLog.debug("Finished loading {0} guilds", guilds.size());
|
PlexLog.debug("Finished loading {0} guilds", guilds.size());
|
||||||
guilds.forEach(guildHolder::addGuild);
|
guilds.forEach(guildHolder::addGuild);
|
||||||
this.registerCommand(new GuildCommand());
|
this.registerCommand(new GuildCommand());
|
||||||
|
@ -59,7 +59,6 @@ public class ChatHandlerImpl implements IChatHandler
|
|||||||
}
|
}
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class PlexChatRenderer implements ChatRenderer
|
public static class PlexChatRenderer implements ChatRenderer
|
||||||
@ -69,7 +68,7 @@ public class ChatHandlerImpl implements IChatHandler
|
|||||||
{
|
{
|
||||||
String text = PlexUtils.getTextFromComponent(message);
|
String text = PlexUtils.getTextFromComponent(message);
|
||||||
|
|
||||||
PlexPlayer plexPlayer = PlayerCache.getPlexPlayerMap().get(source.getUniqueId());
|
PlexPlayer plexPlayer = Plex.get().getPlayerCache().getPlexPlayerMap().get(source.getUniqueId());
|
||||||
Component prefix = Plex.get().getRankManager().getPrefix(plexPlayer);
|
Component prefix = Plex.get().getRankManager().getPrefix(plexPlayer);
|
||||||
|
|
||||||
AtomicBoolean guildPrefix = new AtomicBoolean(false);
|
AtomicBoolean guildPrefix = new AtomicBoolean(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user