This commit is contained in:
Draycia committed 2021-12-25 20:54:58 -08:00
1 parent 64f1f9625a
commit 520630433b
8 files changed
+22 -9

No files matched your search

@@ -20,7 +20,6 @@
package net.draycia.carbon.bukkit; package net.draycia.carbon.bukkit;
import cloud.commandframework.CommandManager; import cloud.commandframework.CommandManager;
import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.brigadier.CloudBrigadierManager; import cloud.commandframework.brigadier.CloudBrigadierManager;
import cloud.commandframework.bukkit.parsers.PlayerArgument; import cloud.commandframework.bukkit.parsers.PlayerArgument;
import cloud.commandframework.execution.AsynchronousCommandExecutionCoordinator; import cloud.commandframework.execution.AsynchronousCommandExecutionCoordinator;
@@ -77,7 +77,7 @@ public final class BukkitChatListener implements Listener {
} }
var channel = requireNonNullElse(sender.selectedChannel(), this.registry.defaultValue()); var channel = requireNonNullElse(sender.selectedChannel(), this.registry.defaultValue());
var messageContents = PlainTextComponentSerializer.plainText().serialize(event.originalMessage()); final var messageContents = PlainTextComponentSerializer.plainText().serialize(event.originalMessage());
var eventMessage = event.message(); var eventMessage = event.message();
if (sender.hasPermission("carbon.chatlinks")) { if (sender.hasPermission("carbon.chatlinks")) {
@@ -32,14 +32,12 @@ import cloud.commandframework.captions.CaptionVariable;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
import cloud.commandframework.exceptions.parsing.NoInputProvidedException; import cloud.commandframework.exceptions.parsing.NoInputProvidedException;
import cloud.commandframework.exceptions.parsing.ParserException; import cloud.commandframework.exceptions.parsing.ParserException;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Queue; import java.util.Queue;
import java.util.function.BiFunction; import java.util.function.BiFunction;
import net.draycia.carbon.api.CarbonChatProvider; import net.draycia.carbon.api.CarbonChatProvider;
import net.draycia.carbon.api.users.CarbonPlayer; import net.draycia.carbon.api.users.CarbonPlayer;
import net.draycia.carbon.common.command.Commander; import net.draycia.carbon.common.command.Commander;
import net.draycia.carbon.common.command.PlayerCommander;
import net.draycia.carbon.common.messages.CarbonMessageService; import net.draycia.carbon.common.messages.CarbonMessageService;
import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable; import org.checkerframework.checker.nullness.qual.Nullable;
@@ -1,3 +1,22 @@
/*
* CarbonChat
*
* Copyright (c) 2021 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.argument; package net.draycia.carbon.common.command.argument;
import cloud.commandframework.context.CommandContext; import cloud.commandframework.context.CommandContext;
@@ -20,7 +20,6 @@
package net.draycia.carbon.common.command.commands; package net.draycia.carbon.common.command.commands;
import cloud.commandframework.CommandManager; import cloud.commandframework.CommandManager;
import cloud.commandframework.arguments.parser.ArgumentParser;
import cloud.commandframework.arguments.standard.UUIDArgument; import cloud.commandframework.arguments.standard.UUIDArgument;
import cloud.commandframework.minecraft.extras.MinecraftExtrasMetaKeys; import cloud.commandframework.minecraft.extras.MinecraftExtrasMetaKeys;
import cloud.commandframework.minecraft.extras.RichDescription; import cloud.commandframework.minecraft.extras.RichDescription;
@@ -70,7 +70,7 @@ public class FabricChatListener implements Consumer<ChatCallback.Chat> {
} }
var channel = requireNonNullElse(sender.selectedChannel(), this.channelRegistry.defaultValue()); var channel = requireNonNullElse(sender.selectedChannel(), this.channelRegistry.defaultValue());
var originalMessage = chat.message(); final var originalMessage = chat.message();
Component eventMessage = text(chat.message()); Component eventMessage = text(chat.message());
if (sender.hasPermission("carbon.chatlinks")) { if (sender.hasPermission("carbon.chatlinks")) {
@@ -96,7 +96,6 @@ public class FabricChatListener implements Consumer<ChatCallback.Chat> {
} }
} }
final var recipients = channel.recipients(sender); final var recipients = channel.recipients(sender);
final var renderers = new ArrayList<KeyedRenderer>(); final var renderers = new ArrayList<KeyedRenderer>();
+1 -1
View File
@@ -1,5 +1,5 @@
# Project Properties # Project Properties
projectVersion=2.0.4 projectVersion=2.0.5
# Gradle Properties # Gradle Properties
org.gradle.configureondemand=true org.gradle.configureondemand=true
@@ -22,7 +22,6 @@ package net.draycia.carbon.sponge;
import cloud.commandframework.CommandManager; import cloud.commandframework.CommandManager;
import cloud.commandframework.execution.AsynchronousCommandExecutionCoordinator; import cloud.commandframework.execution.AsynchronousCommandExecutionCoordinator;
import cloud.commandframework.sponge.SpongeCommandManager; import cloud.commandframework.sponge.SpongeCommandManager;
import cloud.commandframework.sponge.argument.SingleEntitySelectorArgument;
import cloud.commandframework.sponge.argument.SinglePlayerSelectorArgument; import cloud.commandframework.sponge.argument.SinglePlayerSelectorArgument;
import com.google.inject.AbstractModule; import com.google.inject.AbstractModule;
import com.google.inject.Provides; import com.google.inject.Provides;