Skip to content

Commit

Permalink
[3.2.0]大更改,主要增加效果和事件效果
Browse files Browse the repository at this point in the history
  • Loading branch information
nullaqua committed May 10, 2022
1 parent 4d16645 commit 5eb22c4
Show file tree
Hide file tree
Showing 12 changed files with 701 additions and 133 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

<groupId>me.lanzhi</groupId>
<artifactId>BluestarGame</artifactId>
<version>3.1.0</version>
<version>3.2.0</version>
<packaging>jar</packaging>

<name>BluestarGame</name>

<properties>
<java.version>1.8</java.version>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

Expand Down Expand Up @@ -92,7 +92,7 @@
<dependency>
<groupId>com.github.lanzhi6</groupId>
<artifactId>BluestarAPI</artifactId>
<version>2.0.1</version>
<version>2.1.2</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand All @@ -104,7 +104,7 @@
<dependency>
<groupId>com.github.lanzhi6</groupId>
<artifactId>BluestarGameAPI</artifactId>
<version>3.1</version>
<version>3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/me/lanzhi/bluestargame/BluestarGamePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public final class BluestarGamePlugin extends JavaPlugin implements BluestarGame
private final File PlayerData;
private final YamlFile PlayerMap;
private final YamlFile Data;
private final YamlFile Lang;
private final String messageHead=ChatColor.GOLD+"["+ChatColor.DARK_AQUA+"BluestarGame"+ChatColor.GOLD+"]";
private final String errorMessageHead=messageHead+ChatColor.RED;
private final SimpleDateFormat BluestarDateFormat;
Expand All @@ -52,6 +53,7 @@ public BluestarGamePlugin()
config=new YamlFile(new File(this.getDataFolder(),"config.yml"));
PlayerMap=new YamlFile(new File(this.getDataFolder(),"playerMap.yml"));
Data=new YamlFile(new File(this.getDataFolder(),"data.yml"));
Lang=new YamlFile(new File(this.getDataFolder(),"lang.yml"));
PlayerData=new File(this.getDataFolder(),"PlayerData");
PlayerData.mkdirs();
BluestarDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Expand All @@ -65,6 +67,7 @@ public void onEnable()
config.reload();
PlayerMap.reload();
Data.reload();
Lang.reload();
bluestarGameManager=new BluestarGameManager(this);
commandRegister=new CommandRegister(this);
listenersRegister=new ListenersRegister(this);
Expand Down Expand Up @@ -104,6 +107,7 @@ public void onDisable()
Data.save();
PlayerMap.save();
config.save();
Lang.save();
Bukkit.getServicesManager().unregisterAll(this);
isEnable=false;
System.out.println("BluestarGame已卸载");
Expand Down Expand Up @@ -175,6 +179,12 @@ public YamlFile getPlayerMap()
return PlayerMap;
}

@Override
public YamlFile getLang()
{
return Lang;
}

@Override
public BluestarGameManager getBluestarGameManager()
{
Expand All @@ -199,6 +209,7 @@ public BluestarGamePlugin getPlugin()
return this;
}

@Override
public boolean isEnable()
{
return this.isEnable;
Expand Down
Loading

0 comments on commit 5eb22c4

Please sign in to comment.