Skip to content

Commit

Permalink
修复
Browse files Browse the repository at this point in the history
  • Loading branch information
MineSunshineone committed Jan 18, 2025
1 parent 158e2de commit 688e8f1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
8 changes: 7 additions & 1 deletion dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ict.MineSunshineone</groupId>
<artifactId>ColorCode</artifactId>
<artifactId>SimpleChat</artifactId>
<version>1.4</version>
<build>
<resources>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import ict.minesunshineone.chat.listeners.SignListener;
import ict.minesunshineone.chat.managers.MuteManager;

public class ColorCode extends JavaPlugin {
public class SimpleChat extends JavaPlugin {

private MuteManager muteManager;

Expand All @@ -32,15 +32,15 @@ public void onEnable() {
getCommand("mute").setTabCompleter(new MuteCommandTabCompleter());
getCommand("unmute").setTabCompleter(new MuteCommandTabCompleter());

getLogger().info("ColorCode插件已启用");
getLogger().info("SimpleChat插件已启用");
}

@Override
public void onDisable() {
if (muteManager != null) {
muteManager.saveMuteData();
}
getLogger().info("ColorCode插件已禁用");
getLogger().info("SimpleChat插件已禁用");
}

public MuteManager getMuteManager() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;

import ict.minesunshineone.chat.ColorCode;
import ict.minesunshineone.chat.SimpleChat;
import ict.minesunshineone.chat.managers.MuteManager;
import ict.minesunshineone.chat.utils.ColorUtils;
import ict.minesunshineone.chat.utils.ComponentUtils;
Expand All @@ -21,10 +21,10 @@

public class PlayerChatListener implements org.bukkit.event.Listener {

private ColorCode plugin;
private SimpleChat plugin;
private final MuteManager muteManager;

public PlayerChatListener(ColorCode plugin, MuteManager muteManager) {
public PlayerChatListener(SimpleChat plugin, MuteManager muteManager) {
this.plugin = plugin;
this.muteManager = muteManager;
}
Expand Down

0 comments on commit 688e8f1

Please sign in to comment.