Skip to content

Commit

Permalink
null
Browse files Browse the repository at this point in the history
  • Loading branch information
nullaqua committed Feb 26, 2022
1 parent 4a4852e commit 8bcc604
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 102 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.lanzhi</groupId>
<artifactId>BluestarGame</artifactId>
<version>2.0.8</version>
<version>2.0.9</version>
<packaging>jar</packaging>

<name>BluestarGame</name>
Expand Down
12 changes: 9 additions & 3 deletions src/main/java/me/lanzhi/bluestargame/BluestarGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,24 @@
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.plugin.Plugin;
import org.bukkit.scheduler.BukkitTask;
import me.lanzhi.bluestarapi.Api.yamlConfig;

import java.io.File;

public final class BluestarGame extends org.bukkit.plugin.java.JavaPlugin
{
public static Plugin config;
public static Plugin plugin;
public static yamlConfig config;
BukkitTask task;

@Override
public void onEnable()
{
ConfigurationSerialization.registerClass(muted.class);
ConfigurationSerialization.registerClass(superSponge.class);
config = getProvidingPlugin(BluestarGame.class);
saveDefaultConfig();
plugin = getProvidingPlugin(BluestarGame.class);
config = new yamlConfig(new File(plugin.getDataFolder(),"config.yml"));
int pluginId = 14294;
Metrics metrics = new Metrics(this, pluginId);
Bukkit.getPluginManager().registerEvents(new listener(), this);
Expand Down Expand Up @@ -54,7 +60,7 @@ public void onEnable()
{
System.out.println(ChatColor.RED + "错误!");
}
if (config.getConfig().getBoolean("auto"))
if (config.getBoolean("auto"))
{
CTRL.runAuto(true);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/me/lanzhi/bluestargame/Ctrls/AutoCtrl.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void run()
{
return;
}
if (!BluestarGame.config.getConfig().getBoolean("auto"))
if (!BluestarGame.config.getBoolean("auto"))
{
if (AutoCtrl.this.on != 0)
{
Expand Down
Loading

0 comments on commit 8bcc604

Please sign in to comment.