Skip to content

Commit

Permalink
null
Browse files Browse the repository at this point in the history
  • Loading branch information
nullaqua committed Feb 13, 2022
1 parent 9287235 commit bb3d02f
Show file tree
Hide file tree
Showing 4 changed files with 861 additions and 1 deletion.
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.3</version>
<version>2.0.5</version>
<packaging>jar</packaging>

<name>BluestarGame</name>
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/me/lanzhi/bluestargame/BluestarGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public final class BluestarGame extends org.bukkit.plugin.java.JavaPlugin
public void onEnable()
{
config = getProvidingPlugin(BluestarGame.class);
int pluginId = 14294;
Metrics metrics = new Metrics(this, pluginId);
Bukkit.getPluginManager().registerEvents(new listener(), this);
if (getCommand("bluestargame") != null)
{
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/me/lanzhi/bluestargame/Ctrls/AutoCtrl.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package me.lanzhi.bluestargame.Ctrls;

import me.lanzhi.bluestargame.BluestarGame;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.scheduler.BukkitRunnable;

Expand All @@ -12,6 +13,10 @@ public class AutoCtrl
@Override
public void run()
{
if(Bukkit.getServer().getOnlinePlayers().size()<=0)
{
return;
}
if (!BluestarGame.config.getConfig().getBoolean("auto"))
{
if (AutoCtrl.this.on != 0)
Expand Down
Loading

0 comments on commit bb3d02f

Please sign in to comment.