mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Initial abstraction -> ChatUser
This commit is contained in:
1 parent
03e8f4ec53
commit
97089de7ef
22 files changed
+396
-365
No files matched your search
@@ -1,7 +1,7 @@
|
||||
package net.draycia.simplechat.events;
|
||||
|
||||
import net.draycia.simplechat.channels.ChatChannel;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import net.draycia.simplechat.storage.ChatUser;
|
||||
import org.bukkit.event.Cancellable;
|
||||
import org.bukkit.event.Event;
|
||||
import org.bukkit.event.HandlerList;
|
||||
@@ -11,15 +11,15 @@ public class ChannelChatEvent extends Event implements Cancellable {
|
||||
private static final HandlerList HANDLERS_LIST = new HandlerList();
|
||||
private boolean isCancelled = false;
|
||||
|
||||
private OfflinePlayer player;
|
||||
private ChatUser user;
|
||||
private ChatChannel chatChannel;
|
||||
private String format;
|
||||
private String message;
|
||||
|
||||
public ChannelChatEvent(OfflinePlayer player, ChatChannel chatChannel, String format, String message) {
|
||||
public ChannelChatEvent(ChatUser user, ChatChannel chatChannel, String format, String message) {
|
||||
super(true);
|
||||
|
||||
this.player = player;
|
||||
this.user = user;
|
||||
this.chatChannel = chatChannel;
|
||||
this.format = format;
|
||||
this.message = message;
|
||||
@@ -44,8 +44,8 @@ public class ChannelChatEvent extends Event implements Cancellable {
|
||||
return HANDLERS_LIST;
|
||||
}
|
||||
|
||||
public OfflinePlayer getPlayer() {
|
||||
return player;
|
||||
public ChatUser getUser() {
|
||||
return user;
|
||||
}
|
||||
|
||||
public ChatChannel getChatChannel() {
|
||||
|
||||
Reference in new issue
Block a user