2 Commits
5 changed files with 11 additions and 6 deletions

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleHome" value="C:/Gradle/gradle-7.5.1" />
<option name="gradleJvm" value="17" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
+1 -1
View File
@@ -5,7 +5,7 @@
<option name="description" value="" />
</component>
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" default="true" project-jdk-name="temurin-16" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
+1 -1
View File
@@ -4,7 +4,7 @@ plugins {
}
group = 'com.artillexstudios.axsmithing'
version = '1.9'
version = '1.10'
repositories {
mavenCentral()
@@ -7,7 +7,7 @@ import com.artillexstudios.axapi.libs.boostedyaml.boostedyaml.settings.dumper.Du
import com.artillexstudios.axapi.libs.boostedyaml.boostedyaml.settings.general.GeneralSettings;
import com.artillexstudios.axapi.libs.boostedyaml.boostedyaml.settings.loader.LoaderSettings;
import com.artillexstudios.axapi.libs.boostedyaml.boostedyaml.settings.updater.UpdaterSettings;
import com.artillexstudios.axapi.utils.Version;
import com.artillexstudios.axapi.scheduler.Scheduler;
import com.artillexstudios.axsmithing.command.AxSmithingCommand;
import com.artillexstudios.axsmithing.command.AxSmithingTabComplete;
import com.artillexstudios.axsmithing.gui.SmithingTable;
@@ -69,6 +69,11 @@ public class AxSmithingPlugin extends AxPlugin {
Bukkit.getPluginCommand("axsmithing").setTabCompleter(new AxSmithingTabComplete());
}
@Override
public void onDisable() {
Scheduler.get().cancelAll();
}
public void reload() {
try {
config.reload();
@@ -80,7 +85,7 @@ public class AxSmithingPlugin extends AxPlugin {
}
private void initializeSmithingTableImpl() {
if (Bukkit.getBukkitVersion().startsWith("1.2")) {
if (!Bukkit.getBukkitVersion().startsWith("1.1")) {
v1_20 = true;
smithingTableImpl = new SmithingTable_V1_20();
} else {
@@ -9,7 +9,7 @@ import org.jetbrains.annotations.NotNull;
public class StringUtils {
private static final LegacyComponentSerializer LEGACY_COMPONENT_SERIALIZER = LegacyComponentSerializer.builder().character('\u00a7').useUnusualXRepeatedCharacterHexFormat().hexColors().build();
private static final LegacyComponentSerializer LEGACY_FORMATTER = LegacyComponentSerializer.legacyAmpersand().toBuilder().useUnusualXRepeatedCharacterHexFormat().hexColors().build();
private static final LegacyComponentSerializer LEGACY_FORMATTER = LegacyComponentSerializer.builder().character('&').useUnusualXRepeatedCharacterHexFormat().hexColors().build();
private static final MiniMessage MINI_MESSAGE = MiniMessage.miniMessage();
@NotNull