Skip to content

Commit 12e9f7b

Browse files
committed
修改主类实例获取
1 parent 065c83d commit 12e9f7b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.idea/misc.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/hzzz/points/Points.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public final class Points extends JavaPlugin {
4646

4747
public Points() {
4848
super();
49-
System.out.println("1111111");
49+
instance = this;
5050
}
5151

5252

@@ -64,8 +64,6 @@ public static Points getInstance() {
6464
*/
6565
@Override
6666
public void onLoad() {
67-
instance = this;
68-
6967
// 如果配置文件不存在, 保存默认的配置
7068
// config.yml
7169
saveDefaultConfig();

0 commit comments

Comments
 (0)