mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-22 22:24:56 +00:00
Revert "Fix discord command sender not being senior (this is retarded)"
This reverts commit 8d13ee731e
.
This commit is contained in:
parent
8d13ee731e
commit
4bc164c09a
1 changed files with 2 additions and 35 deletions
|
@ -3,9 +3,6 @@ package me.StevenLawson.TotalFreedomMod.discord.sender;
|
|||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.command.ConsoleCommandSender;
|
||||
import org.bukkit.conversations.Conversation;
|
||||
import org.bukkit.conversations.ConversationAbandonedEvent;
|
||||
import org.bukkit.permissions.PermissibleBase;
|
||||
import org.bukkit.permissions.Permission;
|
||||
import org.bukkit.permissions.PermissionAttachment;
|
||||
|
@ -15,7 +12,7 @@ import org.javacord.api.entity.user.User;
|
|||
|
||||
import java.util.Set;
|
||||
|
||||
public class DiscordCommandSender implements ConsoleCommandSender {
|
||||
public class DiscordCommandSender implements CommandSender {
|
||||
private final User user;
|
||||
protected final PermissibleBase perm;
|
||||
|
||||
|
@ -31,7 +28,7 @@ public class DiscordCommandSender implements ConsoleCommandSender {
|
|||
|
||||
@Override
|
||||
public void sendMessage(String[] strings) {
|
||||
user.sendMessage(String.join("\n", strings));
|
||||
user.sendMessage(String.join("", strings));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -107,34 +104,4 @@ public class DiscordCommandSender implements ConsoleCommandSender {
|
|||
@Override
|
||||
public void setOp(boolean b) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isConversing() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void acceptConversationInput(String s) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean beginConversation(Conversation conversation) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void abandonConversation(Conversation conversation) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void abandonConversation(Conversation conversation, ConversationAbandonedEvent conversationAbandonedEvent) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendRawMessage(String s) {
|
||||
user.sendMessage(s);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue