mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Make some classes final
This commit is contained in:
1 parent
c62c30ee5e
commit
7abfbe2090
10 files changed
+28
-16
No files matched your search
@@ -17,7 +17,7 @@ import org.spongepowered.plugin.PluginContainer;
|
||||
import org.spongepowered.plugin.jvm.Plugin;
|
||||
|
||||
@Plugin("carbonchat")
|
||||
public class CarbonChatSponge extends CarbonChatCommon {
|
||||
public final class CarbonChatSponge extends CarbonChatCommon {
|
||||
|
||||
private static final int BSTATS_PLUGIN_ID = 11279;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.spongepowered.api.event.Listener;
|
||||
import org.spongepowered.api.event.message.PlayerChatEvent;
|
||||
|
||||
public class SpongeChatListener {
|
||||
public final class SpongeChatListener {
|
||||
|
||||
@Listener
|
||||
public void onPlayerChat(final @NonNull PlayerChatEvent event) {
|
||||
|
||||
@@ -15,7 +15,7 @@ import org.spongepowered.api.item.inventory.ItemStack;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
public class CarbonPlayerSponge extends CarbonPlayerCommon {
|
||||
public final class CarbonPlayerSponge extends CarbonPlayerCommon {
|
||||
|
||||
public CarbonPlayerSponge(
|
||||
final @NonNull String username,
|
||||
|
||||
@@ -19,7 +19,7 @@ import static net.kyori.adventure.text.Component.text;
|
||||
* No data is persisted or saved.
|
||||
* This exists merely as a placeholder.
|
||||
*/
|
||||
public class MemoryUserManagerSponge implements UserManager {
|
||||
public final class MemoryUserManagerSponge implements UserManager {
|
||||
|
||||
private final @NonNull Map<UUID, @NonNull CarbonPlayer> users = new HashMap<>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user