mirror of
https://github.com/Aust1n46/VentureChat.git
synced 2025-05-23 02:19:05 +00:00
Renaming and reorganizing
This commit is contained in:
parent
295afc6e35
commit
53ddb3f591
@ -17,44 +17,44 @@ import org.bukkit.configuration.file.YamlConfiguration;
|
|||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.initators.commands.Broadcast;
|
import venture.Aust1n46.chat.controllers.commands.Broadcast;
|
||||||
import venture.Aust1n46.chat.initators.commands.BungeeToggle;
|
import venture.Aust1n46.chat.controllers.commands.BungeeToggle;
|
||||||
import venture.Aust1n46.chat.initators.commands.Channel;
|
import venture.Aust1n46.chat.controllers.commands.Channel;
|
||||||
import venture.Aust1n46.chat.initators.commands.ChannelAlias;
|
import venture.Aust1n46.chat.controllers.commands.ChannelAlias;
|
||||||
import venture.Aust1n46.chat.initators.commands.Channelinfo;
|
import venture.Aust1n46.chat.controllers.commands.Channelinfo;
|
||||||
import venture.Aust1n46.chat.initators.commands.Chatinfo;
|
import venture.Aust1n46.chat.controllers.commands.Chatinfo;
|
||||||
import venture.Aust1n46.chat.initators.commands.Chatreload;
|
import venture.Aust1n46.chat.controllers.commands.Chatreload;
|
||||||
import venture.Aust1n46.chat.initators.commands.Chlist;
|
import venture.Aust1n46.chat.controllers.commands.Chlist;
|
||||||
import venture.Aust1n46.chat.initators.commands.Chwho;
|
import venture.Aust1n46.chat.controllers.commands.Chwho;
|
||||||
import venture.Aust1n46.chat.initators.commands.Clearchat;
|
import venture.Aust1n46.chat.controllers.commands.Clearchat;
|
||||||
import venture.Aust1n46.chat.initators.commands.Commandblock;
|
import venture.Aust1n46.chat.controllers.commands.Commandblock;
|
||||||
import venture.Aust1n46.chat.initators.commands.Commandspy;
|
import venture.Aust1n46.chat.controllers.commands.Commandspy;
|
||||||
import venture.Aust1n46.chat.initators.commands.Edit;
|
import venture.Aust1n46.chat.controllers.commands.Edit;
|
||||||
import venture.Aust1n46.chat.initators.commands.Filter;
|
import venture.Aust1n46.chat.controllers.commands.Filter;
|
||||||
import venture.Aust1n46.chat.initators.commands.Force;
|
import venture.Aust1n46.chat.controllers.commands.Force;
|
||||||
import venture.Aust1n46.chat.initators.commands.Forceall;
|
import venture.Aust1n46.chat.controllers.commands.Forceall;
|
||||||
import venture.Aust1n46.chat.initators.commands.Ignore;
|
import venture.Aust1n46.chat.controllers.commands.Ignore;
|
||||||
import venture.Aust1n46.chat.initators.commands.Kickchannel;
|
import venture.Aust1n46.chat.controllers.commands.Kickchannel;
|
||||||
import venture.Aust1n46.chat.initators.commands.Kickchannelall;
|
import venture.Aust1n46.chat.controllers.commands.Kickchannelall;
|
||||||
import venture.Aust1n46.chat.initators.commands.Leave;
|
import venture.Aust1n46.chat.controllers.commands.Leave;
|
||||||
import venture.Aust1n46.chat.initators.commands.Listen;
|
import venture.Aust1n46.chat.controllers.commands.Listen;
|
||||||
import venture.Aust1n46.chat.initators.commands.Me;
|
import venture.Aust1n46.chat.controllers.commands.Me;
|
||||||
import venture.Aust1n46.chat.initators.commands.Message;
|
import venture.Aust1n46.chat.controllers.commands.Message;
|
||||||
import venture.Aust1n46.chat.initators.commands.MessageToggle;
|
import venture.Aust1n46.chat.controllers.commands.MessageToggle;
|
||||||
import venture.Aust1n46.chat.initators.commands.Mute;
|
import venture.Aust1n46.chat.controllers.commands.Mute;
|
||||||
import venture.Aust1n46.chat.initators.commands.Muteall;
|
import venture.Aust1n46.chat.controllers.commands.Muteall;
|
||||||
import venture.Aust1n46.chat.initators.commands.Notifications;
|
import venture.Aust1n46.chat.controllers.commands.Notifications;
|
||||||
import venture.Aust1n46.chat.initators.commands.Party;
|
import venture.Aust1n46.chat.controllers.commands.Party;
|
||||||
import venture.Aust1n46.chat.initators.commands.RangedSpy;
|
import venture.Aust1n46.chat.controllers.commands.RangedSpy;
|
||||||
import venture.Aust1n46.chat.initators.commands.Removemessage;
|
import venture.Aust1n46.chat.controllers.commands.Removemessage;
|
||||||
import venture.Aust1n46.chat.initators.commands.Reply;
|
import venture.Aust1n46.chat.controllers.commands.Reply;
|
||||||
import venture.Aust1n46.chat.initators.commands.Setchannel;
|
import venture.Aust1n46.chat.controllers.commands.Setchannel;
|
||||||
import venture.Aust1n46.chat.initators.commands.Setchannelall;
|
import venture.Aust1n46.chat.controllers.commands.Setchannelall;
|
||||||
import venture.Aust1n46.chat.initators.commands.Spy;
|
import venture.Aust1n46.chat.controllers.commands.Spy;
|
||||||
import venture.Aust1n46.chat.initators.commands.Unmute;
|
import venture.Aust1n46.chat.controllers.commands.Unmute;
|
||||||
import venture.Aust1n46.chat.initators.commands.Unmuteall;
|
import venture.Aust1n46.chat.controllers.commands.Unmuteall;
|
||||||
import venture.Aust1n46.chat.initators.commands.VentureChatGui;
|
import venture.Aust1n46.chat.controllers.commands.VentureChatGui;
|
||||||
import venture.Aust1n46.chat.initators.commands.Venturechat;
|
import venture.Aust1n46.chat.controllers.commands.Venturechat;
|
||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.model.ChatChannel;
|
import venture.Aust1n46.chat.model.ChatChannel;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
|
@ -20,15 +20,15 @@ import com.google.inject.Singleton;
|
|||||||
|
|
||||||
import me.clip.placeholderapi.PlaceholderAPI;
|
import me.clip.placeholderapi.PlaceholderAPI;
|
||||||
import venture.Aust1n46.chat.api.events.VentureChatEvent;
|
import venture.Aust1n46.chat.api.events.VentureChatEvent;
|
||||||
import venture.Aust1n46.chat.initators.commands.MuteContainer;
|
|
||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.ChatChannel;
|
import venture.Aust1n46.chat.model.ChatChannel;
|
||||||
|
import venture.Aust1n46.chat.model.MuteContainer;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatDatabaseService;
|
import venture.Aust1n46.chat.service.VentureChatDatabaseService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
@ -40,9 +40,9 @@ public class PluginMessageController {
|
|||||||
@Inject
|
@Inject
|
||||||
private VentureChatDatabaseService databaseService;
|
private VentureChatDatabaseService databaseService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatService;
|
private FormatService formatService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
||||||
@ -92,6 +92,7 @@ public class PluginMessageController {
|
|||||||
plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, new Runnable() {
|
plugin.getServer().getScheduler().runTaskLaterAsynchronously(plugin, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
System.out.println(mcp.isHasPlayed());
|
||||||
if (!mcp.isOnline() || mcp.isHasPlayed()) {
|
if (!mcp.isOnline() || mcp.isHasPlayed()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -320,6 +321,7 @@ public class PluginMessageController {
|
|||||||
if (p == null || p.isHasPlayed()) {
|
if (p == null || p.isHasPlayed()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
System.out.println(p.isHasPlayed());
|
||||||
for (Object ch : p.getListening().toArray()) {
|
for (Object ch : p.getListening().toArray()) {
|
||||||
String c = ch.toString();
|
String c = ch.toString();
|
||||||
ChatChannel cha = configService.getChannel(c);
|
ChatChannel cha = configService.getChannel(c);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.controllers.proxy;
|
package venture.Aust1n46.chat.controllers;
|
||||||
|
|
||||||
import java.io.ByteArrayInputStream;
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
@ -9,20 +9,20 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||||||
|
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.initators.commands.MuteContainer;
|
import venture.Aust1n46.chat.model.MuteContainer;
|
||||||
import venture.Aust1n46.chat.model.SynchronizedVentureChatPlayer;
|
import venture.Aust1n46.chat.model.SynchronizedVentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.model.TemporaryDataInstance;
|
import venture.Aust1n46.chat.model.TemporaryDataInstance;
|
||||||
import venture.Aust1n46.chat.model.VentureChatProxyServer;
|
import venture.Aust1n46.chat.model.VentureChatProxyServer;
|
||||||
import venture.Aust1n46.chat.model.VentureChatProxySource;
|
import venture.Aust1n46.chat.model.VentureChatProxySource;
|
||||||
import venture.Aust1n46.chat.service.proxy.VentureChatProxyPlayerApiService;
|
import venture.Aust1n46.chat.service.ProxyPlayerApiService;
|
||||||
|
|
||||||
public class VentureChatProxyController {
|
public class ProxyController {
|
||||||
public static String PLUGIN_MESSAGING_CHANNEL_NAMESPACE = "venturechat";
|
public static String PLUGIN_MESSAGING_CHANNEL_NAMESPACE = "venturechat";
|
||||||
public static String PLUGIN_MESSAGING_CHANNEL_NAME = "data";
|
public static String PLUGIN_MESSAGING_CHANNEL_NAME = "data";
|
||||||
public static String PLUGIN_MESSAGING_CHANNEL_STRING = "venturechat:data";
|
public static String PLUGIN_MESSAGING_CHANNEL_STRING = "venturechat:data";
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatProxyPlayerApiService playerApiService;
|
private ProxyPlayerApiService playerApiService;
|
||||||
|
|
||||||
public void onPluginMessage(byte[] data, String serverName, VentureChatProxySource source) {
|
public void onPluginMessage(byte[] data, String serverName, VentureChatProxySource source) {
|
||||||
ByteArrayInputStream instream = new ByteArrayInputStream(data);
|
ByteArrayInputStream instream = new ByteArrayInputStream(data);
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.controllers.proxy;
|
package venture.Aust1n46.chat.controllers;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -16,22 +16,22 @@ import com.google.inject.Inject;
|
|||||||
import net.md_5.bungee.config.Configuration;
|
import net.md_5.bungee.config.Configuration;
|
||||||
import net.md_5.bungee.config.ConfigurationProvider;
|
import net.md_5.bungee.config.ConfigurationProvider;
|
||||||
import net.md_5.bungee.config.YamlConfiguration;
|
import net.md_5.bungee.config.YamlConfiguration;
|
||||||
import venture.Aust1n46.chat.initators.commands.MuteContainer;
|
import venture.Aust1n46.chat.model.MuteContainer;
|
||||||
import venture.Aust1n46.chat.model.SynchronizedVentureChatPlayer;
|
import venture.Aust1n46.chat.model.SynchronizedVentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.model.VentureChatProxySource;
|
import venture.Aust1n46.chat.model.VentureChatProxySource;
|
||||||
import venture.Aust1n46.chat.service.proxy.ProxyUuidService;
|
import venture.Aust1n46.chat.service.ProxyPlayerApiService;
|
||||||
import venture.Aust1n46.chat.service.proxy.VentureChatProxyPlayerApiService;
|
import venture.Aust1n46.chat.service.ProxyUuidService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class for reading and writing proxy player data.
|
* Class for reading and writing proxy player data.
|
||||||
*
|
*
|
||||||
* @author Aust1n46
|
* @author Aust1n46
|
||||||
*/
|
*/
|
||||||
public class VentureChatProxyFlatFileController {
|
public class ProxyFlatFileController {
|
||||||
@Inject
|
@Inject
|
||||||
private ProxyUuidService uuidService;
|
private ProxyUuidService uuidService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatProxyPlayerApiService playerApiService;
|
private ProxyPlayerApiService playerApiService;
|
||||||
|
|
||||||
public void loadLegacyBungeePlayerData(File dataFolder, VentureChatProxySource source) {
|
public void loadLegacyBungeePlayerData(File dataFolder, VentureChatProxySource source) {
|
||||||
File sync = new File(dataFolder, "BungeePlayers.yml");
|
File sync = new File(dataFolder, "BungeePlayers.yml");
|
@ -20,13 +20,13 @@ import org.bukkit.configuration.file.YamlConfiguration;
|
|||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.initators.commands.MuteContainer;
|
|
||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.model.ChatChannel;
|
import venture.Aust1n46.chat.model.ChatChannel;
|
||||||
|
import venture.Aust1n46.chat.model.MuteContainer;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.UUIDService;
|
import venture.Aust1n46.chat.service.UuidService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -35,13 +35,13 @@ import venture.Aust1n46.chat.utilities.FormatUtils;
|
|||||||
* @author Aust1n46
|
* @author Aust1n46
|
||||||
*/
|
*/
|
||||||
@Singleton
|
@Singleton
|
||||||
public class VentureChatSpigotFlatFileController {
|
public class SpigotFlatFileController {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private UUIDService uuidService;
|
private UuidService uuidService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService ventureChatApi;
|
private PlayerApiService ventureChatApi;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@ -9,14 +9,14 @@ import com.google.inject.Inject;
|
|||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class Broadcast extends UniversalCommand {
|
public class Broadcast extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatService;
|
private FormatService formatService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Broadcast(String name) {
|
public Broadcast(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -8,13 +8,13 @@ import venture.Aust1n46.chat.controllers.PluginMessageController;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class BungeeToggle extends PlayerCommand {
|
public class BungeeToggle extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public BungeeToggle(String name) {
|
public BungeeToggle(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -12,14 +12,14 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
public class Channel extends PlayerCommand {
|
public class Channel extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -10,11 +10,11 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class ChannelAlias extends PlayerCommand {
|
public class ChannelAlias extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
@Inject
|
@Inject
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@ -7,14 +7,15 @@ import org.bukkit.entity.Player;
|
|||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.model.ChatChannel;
|
import venture.Aust1n46.chat.model.ChatChannel;
|
||||||
|
import venture.Aust1n46.chat.model.MuteContainer;
|
||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Chatinfo extends UniversalCommand {
|
public class Chatinfo extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
@ -7,23 +7,23 @@ import org.bukkit.entity.Player;
|
|||||||
|
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.controllers.VentureChatSpigotFlatFileController;
|
import venture.Aust1n46.chat.controllers.SpigotFlatFileController;
|
||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.JsonFormat;
|
import venture.Aust1n46.chat.model.JsonFormat;
|
||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class Chatreload extends UniversalCommand {
|
public class Chatreload extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatSpigotFlatFileController spigotFlatFileController;
|
private SpigotFlatFileController spigotFlatFileController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import static venture.Aust1n46.chat.utilities.FormatUtils.LINE_LENGTH;
|
import static venture.Aust1n46.chat.utilities.FormatUtils.LINE_LENGTH;
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Chwho extends UniversalCommand {
|
public class Chwho extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
@ -31,7 +31,7 @@ public class Chwho extends UniversalCommand {
|
|||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
@ -8,11 +8,11 @@ import venture.Aust1n46.chat.localization.InternalMessage;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Clearchat extends UniversalCommand {
|
public class Clearchat extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService ventureChatApi;
|
private PlayerApiService ventureChatApi;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Clearchat(String name) {
|
public Clearchat(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -10,13 +10,13 @@ import venture.Aust1n46.chat.initiators.application.VentureChat;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Commandblock extends UniversalCommand {
|
public class Commandblock extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Commandblock(String name) {
|
public Commandblock(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -7,11 +7,11 @@ import com.google.inject.Inject;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Commandspy extends PlayerCommand {
|
public class Commandspy extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Commandspy(String name) {
|
public Commandspy(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -18,17 +18,17 @@ import venture.Aust1n46.chat.localization.LocalizedMessage;
|
|||||||
import venture.Aust1n46.chat.model.ChatMessage;
|
import venture.Aust1n46.chat.model.ChatMessage;
|
||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class Edit extends UniversalCommand {
|
public class Edit extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatService;
|
private FormatService formatService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
private PacketContainer emptyLinePacketContainer;
|
private PacketContainer emptyLinePacketContainer;
|
||||||
private WrappedChatComponent messageDeletedComponentPlayer;
|
private WrappedChatComponent messageDeletedComponentPlayer;
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -7,11 +7,11 @@ import com.google.inject.Inject;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Filter extends PlayerCommand {
|
public class Filter extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Filter(String name) {
|
public Filter(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
@ -7,11 +7,11 @@ import com.google.inject.Inject;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Force extends UniversalCommand {
|
public class Force extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Force(String name) {
|
public Force(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
@ -7,11 +7,11 @@ import com.google.inject.Inject;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Forceall extends UniversalCommand {
|
public class Forceall extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Forceall(String name) {
|
public Forceall(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
@ -19,7 +19,7 @@ import venture.Aust1n46.chat.initiators.application.VentureChat;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Ignore extends PlayerCommand {
|
public class Ignore extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
@ -27,7 +27,7 @@ public class Ignore extends PlayerCommand {
|
|||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Ignore(String name) {
|
public Ignore(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@ -11,13 +11,13 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Kickchannel extends UniversalCommand {
|
public class Kickchannel extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@ -11,13 +11,13 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Kickchannelall extends UniversalCommand {
|
public class Kickchannelall extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -11,13 +11,13 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Leave extends PlayerCommand {
|
public class Leave extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -10,13 +10,13 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Listen extends PlayerCommand {
|
public class Listen extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -7,15 +7,15 @@ import com.google.inject.Inject;
|
|||||||
|
|
||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class Me extends UniversalCommand {
|
public class Me extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatService;
|
private FormatService formatService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Me(String name) {
|
public Me(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
@ -18,19 +18,19 @@ import venture.Aust1n46.chat.initiators.application.VentureChat;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class Message extends PlayerCommand {
|
public class Message extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatService;
|
private FormatService formatService;
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Message(String name) {
|
public Message(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -8,13 +8,13 @@ import venture.Aust1n46.chat.controllers.PluginMessageController;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class MessageToggle extends PlayerCommand {
|
public class MessageToggle extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public MessageToggle(String name) {
|
public MessageToggle(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
@ -20,7 +20,7 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class Mute extends UniversalCommand {
|
public class Mute extends UniversalCommand {
|
||||||
@ -29,7 +29,7 @@ public class Mute extends UniversalCommand {
|
|||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
@ -10,14 +10,14 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class Muteall extends UniversalCommand {
|
public class Muteall extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -7,11 +7,11 @@ import com.google.inject.Inject;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Notifications extends PlayerCommand {
|
public class Notifications extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Notifications(String name) {
|
public Notifications(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import static venture.Aust1n46.chat.utilities.FormatUtils.LINE_LENGTH;
|
import static venture.Aust1n46.chat.utilities.FormatUtils.LINE_LENGTH;
|
||||||
|
|
||||||
@ -10,17 +10,17 @@ import com.google.inject.Inject;
|
|||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class Party extends PlayerCommand {
|
public class Party extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatService;
|
private FormatService formatService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Party(String name) {
|
public Party(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -7,11 +7,11 @@ import com.google.inject.Inject;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class RangedSpy extends PlayerCommand {
|
public class RangedSpy extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public RangedSpy(String name) {
|
public RangedSpy(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
@ -23,19 +23,19 @@ import venture.Aust1n46.chat.model.ChatMessage;
|
|||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class Removemessage extends UniversalCommand {
|
public class Removemessage extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatService;
|
private FormatService formatService;
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
@ -13,19 +13,19 @@ import venture.Aust1n46.chat.initiators.application.VentureChat;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class Reply extends PlayerCommand {
|
public class Reply extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatService;
|
private FormatService formatService;
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Reply(String name) {
|
public Reply(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
@ -10,13 +10,13 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Setchannel extends UniversalCommand {
|
public class Setchannel extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
@ -10,13 +10,13 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Setchannelall extends UniversalCommand {
|
public class Setchannelall extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -8,13 +8,13 @@ import venture.Aust1n46.chat.controllers.PluginMessageController;
|
|||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Spy extends PlayerCommand {
|
public class Spy extends PlayerCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public Spy(String name) {
|
public Spy(String name) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
@ -19,13 +19,13 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Unmute extends UniversalCommand {
|
public class Unmute extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
@ -10,13 +10,13 @@ import venture.Aust1n46.chat.model.ChatChannel;
|
|||||||
import venture.Aust1n46.chat.model.UniversalCommand;
|
import venture.Aust1n46.chat.model.UniversalCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class Unmuteall extends UniversalCommand {
|
public class Unmuteall extends UniversalCommand {
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -21,7 +21,7 @@ import venture.Aust1n46.chat.model.GuiSlot;
|
|||||||
import venture.Aust1n46.chat.model.PlayerCommand;
|
import venture.Aust1n46.chat.model.PlayerCommand;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
import venture.Aust1n46.chat.xcut.VersionService;
|
import venture.Aust1n46.chat.xcut.VersionService;
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ public class VentureChatGui extends PlayerCommand {
|
|||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
@Inject
|
@Inject
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.controllers.commands;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
@ -15,10 +15,11 @@ import com.google.inject.Inject;
|
|||||||
import com.google.inject.Injector;
|
import com.google.inject.Injector;
|
||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
import net.milkbowl.vault.permission.Permission;
|
import net.milkbowl.vault.permission.Permission;
|
||||||
import venture.Aust1n46.chat.controllers.CommandController;
|
import venture.Aust1n46.chat.controllers.CommandController;
|
||||||
import venture.Aust1n46.chat.controllers.PluginMessageController;
|
import venture.Aust1n46.chat.controllers.PluginMessageController;
|
||||||
import venture.Aust1n46.chat.controllers.VentureChatSpigotFlatFileController;
|
import venture.Aust1n46.chat.controllers.SpigotFlatFileController;
|
||||||
import venture.Aust1n46.chat.guice.VentureChatPluginModule;
|
import venture.Aust1n46.chat.guice.VentureChatPluginModule;
|
||||||
import venture.Aust1n46.chat.initiators.listeners.ChatListener;
|
import venture.Aust1n46.chat.initiators.listeners.ChatListener;
|
||||||
import venture.Aust1n46.chat.initiators.listeners.LoginListener;
|
import venture.Aust1n46.chat.initiators.listeners.LoginListener;
|
||||||
@ -28,7 +29,7 @@ import venture.Aust1n46.chat.initiators.listeners.SignListener;
|
|||||||
import venture.Aust1n46.chat.initiators.schedulers.UnmuteScheduler;
|
import venture.Aust1n46.chat.initiators.schedulers.UnmuteScheduler;
|
||||||
import venture.Aust1n46.chat.localization.Localization;
|
import venture.Aust1n46.chat.localization.Localization;
|
||||||
import venture.Aust1n46.chat.placeholderapi.VentureChatPlaceholders;
|
import venture.Aust1n46.chat.placeholderapi.VentureChatPlaceholders;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
import venture.Aust1n46.chat.xcut.VersionService;
|
import venture.Aust1n46.chat.xcut.VersionService;
|
||||||
|
|
||||||
@ -52,20 +53,26 @@ public class VentureChat extends JavaPlugin implements PluginMessageListener {
|
|||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlaceholders ventureChatPlaceholders;
|
private VentureChatPlaceholders ventureChatPlaceholders;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatSpigotFlatFileController spigotFlatFileService;
|
private SpigotFlatFileController spigotFlatFileService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VersionService versionService;
|
private VersionService versionService;
|
||||||
|
|
||||||
private Permission permission = null;
|
@Getter
|
||||||
|
private Permission vaultPermission;
|
||||||
|
private Injector injector;
|
||||||
|
|
||||||
|
public void injectDependencies(Object o) {
|
||||||
|
injector.injectMembers(o);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
final VentureChatPluginModule pluginModule = new VentureChatPluginModule(this);
|
final VentureChatPluginModule pluginModule = new VentureChatPluginModule(this);
|
||||||
final Injector injector = Guice.createInjector(pluginModule);
|
injector = Guice.createInjector(pluginModule);
|
||||||
injector.injectMembers(this);
|
injector.injectMembers(this);
|
||||||
injector.injectMembers(new CommandController());
|
injector.injectMembers(new CommandController());
|
||||||
injector.injectMembers(new UnmuteScheduler());
|
injector.injectMembers(new UnmuteScheduler());
|
||||||
@ -168,13 +175,9 @@ public class VentureChat extends JavaPlugin implements PluginMessageListener {
|
|||||||
private boolean setupPermissions() {
|
private boolean setupPermissions() {
|
||||||
RegisteredServiceProvider<Permission> permissionProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.permission.Permission.class);
|
RegisteredServiceProvider<Permission> permissionProvider = getServer().getServicesManager().getRegistration(net.milkbowl.vault.permission.Permission.class);
|
||||||
if (permissionProvider != null) {
|
if (permissionProvider != null) {
|
||||||
permission = permissionProvider.getProvider();
|
vaultPermission = permissionProvider.getProvider();
|
||||||
}
|
}
|
||||||
return (permission != null);
|
return (vaultPermission != null);
|
||||||
}
|
|
||||||
|
|
||||||
public Permission getVaultPermission() {
|
|
||||||
return permission;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -26,12 +26,12 @@ import net.md_5.bungee.config.Configuration;
|
|||||||
import net.md_5.bungee.config.ConfigurationProvider;
|
import net.md_5.bungee.config.ConfigurationProvider;
|
||||||
import net.md_5.bungee.config.YamlConfiguration;
|
import net.md_5.bungee.config.YamlConfiguration;
|
||||||
import net.md_5.bungee.event.EventHandler;
|
import net.md_5.bungee.event.EventHandler;
|
||||||
import venture.Aust1n46.chat.controllers.proxy.VentureChatProxyController;
|
import venture.Aust1n46.chat.controllers.ProxyController;
|
||||||
import venture.Aust1n46.chat.controllers.proxy.VentureChatProxyFlatFileController;
|
import venture.Aust1n46.chat.controllers.ProxyFlatFileController;
|
||||||
import venture.Aust1n46.chat.guice.VentureChatBungeePluginModule;
|
import venture.Aust1n46.chat.guice.VentureChatBungeePluginModule;
|
||||||
import venture.Aust1n46.chat.model.VentureChatProxyServer;
|
import venture.Aust1n46.chat.model.VentureChatProxyServer;
|
||||||
import venture.Aust1n46.chat.model.VentureChatProxySource;
|
import venture.Aust1n46.chat.model.VentureChatProxySource;
|
||||||
import venture.Aust1n46.chat.service.proxy.ProxyUuidService;
|
import venture.Aust1n46.chat.service.ProxyUuidService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -46,9 +46,9 @@ public class VentureChatBungee extends Plugin implements Listener, VentureChatPr
|
|||||||
@Inject
|
@Inject
|
||||||
private ProxyUuidService uuidService;
|
private ProxyUuidService uuidService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatProxyFlatFileController proxyFlatFileController;
|
private ProxyFlatFileController proxyFlatFileController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatProxyController proxy;
|
private ProxyController proxy;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
@ -73,7 +73,7 @@ public class VentureChatBungee extends Plugin implements Listener, VentureChatPr
|
|||||||
proxyFlatFileController.loadLegacyBungeePlayerData(bungeePlayerDataDirectory, this);
|
proxyFlatFileController.loadLegacyBungeePlayerData(bungeePlayerDataDirectory, this);
|
||||||
proxyFlatFileController.loadProxyPlayerData(bungeePlayerDataDirectory, this);
|
proxyFlatFileController.loadProxyPlayerData(bungeePlayerDataDirectory, this);
|
||||||
|
|
||||||
this.getProxy().registerChannel(VentureChatProxyController.PLUGIN_MESSAGING_CHANNEL_STRING);
|
this.getProxy().registerChannel(ProxyController.PLUGIN_MESSAGING_CHANNEL_STRING);
|
||||||
this.getProxy().getPluginManager().registerListener(this, this);
|
this.getProxy().getPluginManager().registerListener(this, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ public class VentureChatBungee extends Plugin implements Listener, VentureChatPr
|
|||||||
|
|
||||||
for (String send : getProxy().getServers().keySet()) {
|
for (String send : getProxy().getServers().keySet()) {
|
||||||
if (getProxy().getServers().get(send).getPlayers().size() > 0) {
|
if (getProxy().getServers().get(send).getPlayers().size() > 0) {
|
||||||
getProxy().getServers().get(send).sendData(VentureChatProxyController.PLUGIN_MESSAGING_CHANNEL_STRING, outstream.toByteArray());
|
getProxy().getServers().get(send).sendData(ProxyController.PLUGIN_MESSAGING_CHANNEL_STRING, outstream.toByteArray());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@ -119,7 +119,7 @@ public class VentureChatBungee extends Plugin implements Listener, VentureChatPr
|
|||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onPluginMessage(PluginMessageEvent event) {
|
public void onPluginMessage(PluginMessageEvent event) {
|
||||||
if (!event.getTag().equals(VentureChatProxyController.PLUGIN_MESSAGING_CHANNEL_STRING) && !event.getTag().contains("viaversion:")) {
|
if (!event.getTag().equals(ProxyController.PLUGIN_MESSAGING_CHANNEL_STRING) && !event.getTag().contains("viaversion:")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!(event.getSender() instanceof Server)) {
|
if (!(event.getSender() instanceof Server)) {
|
||||||
@ -131,7 +131,7 @@ public class VentureChatBungee extends Plugin implements Listener, VentureChatPr
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendPluginMessage(String serverName, byte[] data) {
|
public void sendPluginMessage(String serverName, byte[] data) {
|
||||||
getProxy().getServers().get(serverName).sendData(VentureChatProxyController.PLUGIN_MESSAGING_CHANNEL_STRING, data);
|
getProxy().getServers().get(serverName).sendData(ProxyController.PLUGIN_MESSAGING_CHANNEL_STRING, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -32,8 +32,8 @@ import com.velocitypowered.api.proxy.server.RegisteredServer;
|
|||||||
import net.md_5.bungee.config.Configuration;
|
import net.md_5.bungee.config.Configuration;
|
||||||
import net.md_5.bungee.config.ConfigurationProvider;
|
import net.md_5.bungee.config.ConfigurationProvider;
|
||||||
import net.md_5.bungee.config.YamlConfiguration;
|
import net.md_5.bungee.config.YamlConfiguration;
|
||||||
import venture.Aust1n46.chat.controllers.proxy.VentureChatProxyController;
|
import venture.Aust1n46.chat.controllers.ProxyController;
|
||||||
import venture.Aust1n46.chat.controllers.proxy.VentureChatProxyFlatFileController;
|
import venture.Aust1n46.chat.controllers.ProxyFlatFileController;
|
||||||
import venture.Aust1n46.chat.model.VentureChatProxyServer;
|
import venture.Aust1n46.chat.model.VentureChatProxyServer;
|
||||||
import venture.Aust1n46.chat.model.VentureChatProxySource;
|
import venture.Aust1n46.chat.model.VentureChatProxySource;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
@ -45,14 +45,14 @@ import venture.Aust1n46.chat.utilities.FormatUtils;
|
|||||||
*/
|
*/
|
||||||
public class VentureChatVelocity implements VentureChatProxySource {
|
public class VentureChatVelocity implements VentureChatProxySource {
|
||||||
private final ProxyServer proxyServer;
|
private final ProxyServer proxyServer;
|
||||||
private final ChannelIdentifier channelIdentifier = MinecraftChannelIdentifier.create(VentureChatProxyController.PLUGIN_MESSAGING_CHANNEL_NAMESPACE,
|
private final ChannelIdentifier channelIdentifier = MinecraftChannelIdentifier.create(ProxyController.PLUGIN_MESSAGING_CHANNEL_NAMESPACE,
|
||||||
VentureChatProxyController.PLUGIN_MESSAGING_CHANNEL_NAME);
|
ProxyController.PLUGIN_MESSAGING_CHANNEL_NAME);
|
||||||
private final Logger logger;
|
private final Logger logger;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatProxyFlatFileController proxyFlatFileController;
|
private ProxyFlatFileController proxyFlatFileController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatProxyController proxy;
|
private ProxyController proxy;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
@DataDirectory
|
@DataDirectory
|
||||||
@ -136,7 +136,7 @@ public class VentureChatVelocity implements VentureChatProxySource {
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onPluginMessage(PluginMessageEvent event) {
|
public void onPluginMessage(PluginMessageEvent event) {
|
||||||
String channelIdentifierId = event.getIdentifier().getId();
|
String channelIdentifierId = event.getIdentifier().getId();
|
||||||
if (!channelIdentifierId.equals(VentureChatProxyController.PLUGIN_MESSAGING_CHANNEL_STRING) && !channelIdentifierId.contains("viaversion:")) {
|
if (!channelIdentifierId.equals(ProxyController.PLUGIN_MESSAGING_CHANNEL_STRING) && !channelIdentifierId.contains("viaversion:")) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!(event.getSource() instanceof ServerConnection)) {
|
if (!(event.getSource() instanceof ServerConnection)) {
|
||||||
|
@ -24,15 +24,15 @@ import me.clip.placeholderapi.PlaceholderAPI;
|
|||||||
import net.essentialsx.api.v2.services.discord.DiscordService;
|
import net.essentialsx.api.v2.services.discord.DiscordService;
|
||||||
import venture.Aust1n46.chat.api.events.VentureChatEvent;
|
import venture.Aust1n46.chat.api.events.VentureChatEvent;
|
||||||
import venture.Aust1n46.chat.controllers.PluginMessageController;
|
import venture.Aust1n46.chat.controllers.PluginMessageController;
|
||||||
import venture.Aust1n46.chat.initators.commands.MuteContainer;
|
|
||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.ChatChannel;
|
import venture.Aust1n46.chat.model.ChatChannel;
|
||||||
|
import venture.Aust1n46.chat.model.MuteContainer;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatDatabaseService;
|
import venture.Aust1n46.chat.service.VentureChatDatabaseService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@ -42,13 +42,13 @@ public class ChatListener implements Listener {
|
|||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatService;
|
private FormatService formatService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatDatabaseService databaseService;
|
private VentureChatDatabaseService databaseService;
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
||||||
|
@ -13,14 +13,14 @@ import com.google.inject.Inject;
|
|||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.controllers.PluginMessageController;
|
import venture.Aust1n46.chat.controllers.PluginMessageController;
|
||||||
import venture.Aust1n46.chat.controllers.VentureChatSpigotFlatFileController;
|
import venture.Aust1n46.chat.controllers.SpigotFlatFileController;
|
||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.model.ChatChannel;
|
import venture.Aust1n46.chat.model.ChatChannel;
|
||||||
import venture.Aust1n46.chat.model.JsonFormat;
|
import venture.Aust1n46.chat.model.JsonFormat;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.UUIDService;
|
import venture.Aust1n46.chat.service.UuidService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
import venture.Aust1n46.chat.xcut.Logger;
|
import venture.Aust1n46.chat.xcut.Logger;
|
||||||
|
|
||||||
@ -34,13 +34,13 @@ public class LoginListener implements Listener {
|
|||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private UUIDService uuidService;
|
private UuidService uuidService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatSpigotFlatFileController spigotFlatFileController;
|
private SpigotFlatFileController spigotFlatFileController;
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
@Inject
|
@Inject
|
||||||
|
@ -12,16 +12,16 @@ import com.google.inject.Singleton;
|
|||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.model.ChatMessage;
|
import venture.Aust1n46.chat.model.ChatMessage;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.xcut.VersionService;
|
import venture.Aust1n46.chat.xcut.VersionService;
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
public class PacketListenerLegacyChat extends PacketAdapter {
|
public class PacketListenerLegacyChat extends PacketAdapter {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatter;
|
private FormatService formatter;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private VersionService versionService;
|
private VersionService versionService;
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@ import venture.Aust1n46.chat.model.GuiSlot;
|
|||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatDatabaseService;
|
import venture.Aust1n46.chat.service.VentureChatDatabaseService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
import venture.Aust1n46.chat.xcut.VersionService;
|
import venture.Aust1n46.chat.xcut.VersionService;
|
||||||
|
|
||||||
@ -41,13 +41,13 @@ public class PreProcessCommandListener implements CommandExecutor, Listener {
|
|||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatFormatService formatService;
|
private FormatService formatService;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatDatabaseService databaseService;
|
private VentureChatDatabaseService databaseService;
|
||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
@Inject
|
@Inject
|
||||||
|
@ -9,13 +9,13 @@ import com.google.inject.Inject;
|
|||||||
import com.google.inject.Singleton;
|
import com.google.inject.Singleton;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
public class SignListener implements Listener {
|
public class SignListener implements Listener {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
@EventHandler(priority = EventPriority.HIGH)
|
@EventHandler(priority = EventPriority.HIGH)
|
||||||
|
@ -8,13 +8,13 @@ import org.bukkit.scheduler.BukkitScheduler;
|
|||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.controllers.PluginMessageController;
|
import venture.Aust1n46.chat.controllers.PluginMessageController;
|
||||||
import venture.Aust1n46.chat.initators.commands.MuteContainer;
|
|
||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
import venture.Aust1n46.chat.localization.LocalizedMessage;
|
||||||
import venture.Aust1n46.chat.model.ChatChannel;
|
import venture.Aust1n46.chat.model.ChatChannel;
|
||||||
|
import venture.Aust1n46.chat.model.MuteContainer;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
public class UnmuteScheduler {
|
public class UnmuteScheduler {
|
||||||
@ -23,7 +23,7 @@ public class UnmuteScheduler {
|
|||||||
@Inject
|
@Inject
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ package venture.Aust1n46.chat.model;
|
|||||||
|
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.service.VentureChatFormatService;
|
import venture.Aust1n46.chat.service.FormatService;
|
||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -184,7 +184,7 @@ public class ChatChannel {
|
|||||||
/**
|
/**
|
||||||
* Get the formatted color of the chat channel.
|
* Get the formatted color of the chat channel.
|
||||||
*
|
*
|
||||||
* @return {@link String}. Returns {@link VentureChatFormatService#DEFAULT_COLOR_CODE} if the
|
* @return {@link String}. Returns {@link FormatService#DEFAULT_COLOR_CODE} if the
|
||||||
* color is invalid.
|
* color is invalid.
|
||||||
*/
|
*/
|
||||||
public String getColor() {
|
public String getColor() {
|
||||||
@ -209,7 +209,7 @@ public class ChatChannel {
|
|||||||
/**
|
/**
|
||||||
* Get the formatted chat color of the chat channel.
|
* Get the formatted chat color of the chat channel.
|
||||||
*
|
*
|
||||||
* @return {@link String}. Returns {@link VentureChatFormatService#DEFAULT_COLOR_CODE} if the chat
|
* @return {@link String}. Returns {@link FormatService#DEFAULT_COLOR_CODE} if the chat
|
||||||
* color is invalid.
|
* color is invalid.
|
||||||
*/
|
*/
|
||||||
public String getChatColor() {
|
public String getChatColor() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.initators.commands;
|
package venture.Aust1n46.chat.model;
|
||||||
|
|
||||||
public class MuteContainer {
|
public class MuteContainer {
|
||||||
private String channel;
|
private String channel;
|
@ -8,8 +8,6 @@ import java.util.List;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.initators.commands.MuteContainer;
|
|
||||||
|
|
||||||
public class SynchronizedVentureChatPlayer {
|
public class SynchronizedVentureChatPlayer {
|
||||||
private UUID uuid;
|
private UUID uuid;
|
||||||
private Set<String> listening;
|
private Set<String> listening;
|
||||||
|
@ -13,7 +13,6 @@ import org.bukkit.entity.Player;
|
|||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
import venture.Aust1n46.chat.initators.commands.MuteContainer;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper for {@link Player}
|
* Wrapper for {@link Player}
|
||||||
|
@ -10,7 +10,7 @@ import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
|||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.model.ChatChannel;
|
import venture.Aust1n46.chat.model.ChatChannel;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
|
|
||||||
public class VentureChatPlaceholders extends PlaceholderExpansion {
|
public class VentureChatPlaceholders extends PlaceholderExpansion {
|
||||||
private static final String AUTHOR = "Aust1n46";
|
private static final String AUTHOR = "Aust1n46";
|
||||||
@ -19,7 +19,7 @@ public class VentureChatPlaceholders extends PlaceholderExpansion {
|
|||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
|
|
||||||
private String version;
|
private String version;
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ import venture.Aust1n46.chat.xcut.VersionService;
|
|||||||
* Class containing chat formatting methods.
|
* Class containing chat formatting methods.
|
||||||
*/
|
*/
|
||||||
@Singleton
|
@Singleton
|
||||||
public class VentureChatFormatService {
|
public class FormatService {
|
||||||
public static final int LEGACY_COLOR_CODE_LENGTH = 2;
|
public static final int LEGACY_COLOR_CODE_LENGTH = 2;
|
||||||
public static final int HEX_COLOR_CODE_LENGTH = 14;
|
public static final int HEX_COLOR_CODE_LENGTH = 14;
|
||||||
private static final Pattern PLACEHOLDERAPI_PLACEHOLDER_PATTERN = Pattern.compile("\\{([^\\{\\}]+)\\}");
|
private static final Pattern PLACEHOLDERAPI_PLACEHOLDER_PATTERN = Pattern.compile("\\{([^\\{\\}]+)\\}");
|
||||||
@ -50,7 +50,7 @@ public class VentureChatFormatService {
|
|||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Inject
|
@Inject
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
@Inject
|
@Inject
|
@ -19,7 +19,7 @@ import venture.Aust1n46.chat.model.VentureChatPlayer;
|
|||||||
* @author Aust1n46
|
* @author Aust1n46
|
||||||
*/
|
*/
|
||||||
@Singleton
|
@Singleton
|
||||||
public class VentureChatPlayerApiService {
|
public class PlayerApiService {
|
||||||
private final HashMap<UUID, VentureChatPlayer> playerMap = new HashMap<>();
|
private final HashMap<UUID, VentureChatPlayer> playerMap = new HashMap<>();
|
||||||
private final HashMap<String, UUID> namesMap = new HashMap<>();
|
private final HashMap<String, UUID> namesMap = new HashMap<>();
|
||||||
private final HashMap<UUID, VentureChatPlayer> onlinePlayerMap = new HashMap<>();
|
private final HashMap<UUID, VentureChatPlayer> onlinePlayerMap = new HashMap<>();
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.service.proxy;
|
package venture.Aust1n46.chat.service;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -9,7 +9,7 @@ import com.google.inject.Singleton;
|
|||||||
import venture.Aust1n46.chat.model.SynchronizedVentureChatPlayer;
|
import venture.Aust1n46.chat.model.SynchronizedVentureChatPlayer;
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
public class VentureChatProxyPlayerApiService {
|
public class ProxyPlayerApiService {
|
||||||
private final HashMap<UUID, SynchronizedVentureChatPlayer> proxyPlayerMap = new HashMap<>();
|
private final HashMap<UUID, SynchronizedVentureChatPlayer> proxyPlayerMap = new HashMap<>();
|
||||||
|
|
||||||
public void addSynchronizedMineverseChatPlayerToMap(SynchronizedVentureChatPlayer smcp) {
|
public void addSynchronizedMineverseChatPlayerToMap(SynchronizedVentureChatPlayer smcp) {
|
@ -1,4 +1,4 @@
|
|||||||
package venture.Aust1n46.chat.service.proxy;
|
package venture.Aust1n46.chat.service;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
@ -9,7 +9,7 @@ import venture.Aust1n46.chat.initiators.application.VentureChat;
|
|||||||
import venture.Aust1n46.chat.utilities.FormatUtils;
|
import venture.Aust1n46.chat.utilities.FormatUtils;
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
public class UUIDService {
|
public class UuidService {
|
||||||
@Inject
|
@Inject
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
|
|
@ -13,13 +13,13 @@ import org.mockito.Mock;
|
|||||||
import org.mockito.junit.jupiter.MockitoExtension;
|
import org.mockito.junit.jupiter.MockitoExtension;
|
||||||
|
|
||||||
import venture.Aust1n46.chat.controllers.PluginMessageController;
|
import venture.Aust1n46.chat.controllers.PluginMessageController;
|
||||||
import venture.Aust1n46.chat.controllers.VentureChatSpigotFlatFileController;
|
import venture.Aust1n46.chat.controllers.SpigotFlatFileController;
|
||||||
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
import venture.Aust1n46.chat.initiators.application.VentureChat;
|
||||||
import venture.Aust1n46.chat.model.ChatChannel;
|
import venture.Aust1n46.chat.model.ChatChannel;
|
||||||
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
import venture.Aust1n46.chat.model.VentureChatPlayer;
|
||||||
import venture.Aust1n46.chat.service.ConfigService;
|
import venture.Aust1n46.chat.service.ConfigService;
|
||||||
import venture.Aust1n46.chat.service.UUIDService;
|
import venture.Aust1n46.chat.service.UuidService;
|
||||||
import venture.Aust1n46.chat.service.VentureChatPlayerApiService;
|
import venture.Aust1n46.chat.service.PlayerApiService;
|
||||||
import venture.Aust1n46.chat.xcut.Logger;
|
import venture.Aust1n46.chat.xcut.Logger;
|
||||||
|
|
||||||
@ExtendWith(MockitoExtension.class)
|
@ExtendWith(MockitoExtension.class)
|
||||||
@ -27,13 +27,13 @@ public class LoginListenerTest {
|
|||||||
@Mock
|
@Mock
|
||||||
private VentureChat plugin;
|
private VentureChat plugin;
|
||||||
@Mock
|
@Mock
|
||||||
private UUIDService uuidService;
|
private UuidService uuidService;
|
||||||
@Mock
|
@Mock
|
||||||
private VentureChatSpigotFlatFileController spigotFlatFileController;
|
private SpigotFlatFileController spigotFlatFileController;
|
||||||
@Mock
|
@Mock
|
||||||
private PluginMessageController pluginMessageController;
|
private PluginMessageController pluginMessageController;
|
||||||
@Mock
|
@Mock
|
||||||
private VentureChatPlayerApiService playerApiService;
|
private PlayerApiService playerApiService;
|
||||||
@Mock
|
@Mock
|
||||||
private ConfigService configService;
|
private ConfigService configService;
|
||||||
@Mock
|
@Mock
|
||||||
|
Loading…
x
Reference in New Issue
Block a user