mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Fixes and cleanup
This commit is contained in:
1 parent
92a55bedd7
commit
a511035d0a
3 files changed
+39
No files matched your search
+19
@@ -1,3 +1,22 @@
|
||||
/*
|
||||
* CarbonChat
|
||||
*
|
||||
* Copyright (c) 2023 Josua Parks (Vicarious)
|
||||
* Contributors
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package net.draycia.carbon.common.command.commands;
|
||||
|
||||
import cloud.commandframework.CommandManager;
|
||||
|
||||
@@ -174,6 +174,16 @@ public class ConsoleCarbonPlayer implements CarbonPlayer, ForwardingAudience.Sin
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean ignoringDirectMessages() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ignoringDirectMessages(final boolean ignoring) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendMessageAsPlayer(final String message) {
|
||||
|
||||
|
||||
@@ -161,6 +161,16 @@ public abstract class WrappedCarbonPlayer implements CarbonPlayer {
|
||||
this.carbonPlayerCommon.ignoring(player, nowIgnoring);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean ignoringDirectMessages() {
|
||||
return this.carbonPlayerCommon.ignoringDirectMessages();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ignoringDirectMessages(final boolean ignoring) {
|
||||
this.carbonPlayerCommon.ignoringDirectMessages(ignoring);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPermission(final String permission) {
|
||||
final @Nullable User user = this.user();
|
||||
|
||||
Reference in new issue
Block a user