This repository has been archived by the owner on Feb 14, 2024. It is now read-only.
generated from katorlys-samples/Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* v1.0.6: 65% progress * Fixed vanilla recipes being removed onDisable * Cooldown after player use `/su info` * Fixed other plugins' recipes being removed onDisable * yaml selection * Update to Spigot 1.18.2
- Loading branch information
Showing
15 changed files
with
200 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"git.autofetch": true, | ||
"git.confirmSync": false, | ||
"files.autoSave": "afterDelay", | ||
"files.autoSaveDelay": 1000, | ||
"editor.formatOnType":true, | ||
"java.configuration.updateBuildConfiguration": "automatic", | ||
"yaml.schemas": { | ||
"https://json.schemastore.org/bukkit-plugin.json": "file:///src/main/resources/plugin.yml" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "mvn -B clean verify", | ||
"group": "build" | ||
}, | ||
{ | ||
"label": "test", | ||
"type": "shell", | ||
"command": "mvn -B test", | ||
"group": "test" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
src/main/java/com/github/katorly/starlinutils/commands/help.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/github/katorly/starlinutils/utils/CloseServer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.github.katorly.starlinutils.utils; | ||
|
||
import com.github.katorly.starlinutils.StarlinUtils; | ||
import com.github.katorly.starlinutils.backup.Messager; | ||
|
||
import org.bukkit.configuration.file.FileConfiguration; | ||
import org.bukkit.scheduler.BukkitRunnable; | ||
|
||
public class CloseServer { | ||
public static void close() { | ||
if (!StarlinUtils.serverClosing) { | ||
StarlinUtils.serverClosing = true; | ||
FileConfiguration config = StarlinUtils.config.getConfig(); | ||
Messager.broadcastTitle("&b&l服务器" + config.getInt("server-close-countdown") + "秒后重启", "&7请保管好个人物品!"); | ||
new BukkitRunnable() { | ||
@Override | ||
public void run() { | ||
StarlinUtils.INSTANCE.getServer().shutdown(); | ||
} | ||
}.runTaskLater(StarlinUtils.INSTANCE, config.getInt("server-close-countdown") * 20); | ||
} | ||
} | ||
} |
Oops, something went wrong.