mirror of
https://github.com/Verdurae/PlaceholderPlus.git
synced 2026-11-28 07:35:21 +08:00
Compare commits
4
Commits
v1.0
...
4d2919cfb3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d2919cfb3 | ||
|
|
11289fa6c6 | ||
|
|
f2dd1f8245 | ||
|
|
e5e24faf9b |
No files matched your search
@@ -1,74 +0,0 @@
|
||||
# This workflow uses actions that are not certified by GitHub.
|
||||
# They are provided by a third-party and are governed by
|
||||
# separate terms of service, privacy policy, and support
|
||||
# documentation.
|
||||
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
||||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
|
||||
|
||||
name: Java CI with Gradle
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
pull_request:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 8
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'temurin'
|
||||
- name: Download and install Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
gradle-version: '8.7'
|
||||
- name: Refresh dependencies cache
|
||||
run: gradle clean --refresh-dependencies
|
||||
- name: Build with Gradle
|
||||
run: gradle build
|
||||
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
|
||||
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
|
||||
- name: Setup Gradle
|
||||
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
||||
|
||||
# - name: Build with Gradle Wrapper
|
||||
# run: ./gradlew build
|
||||
|
||||
# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
|
||||
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
|
||||
#
|
||||
# - name: Setup Gradle
|
||||
# uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
||||
# with:
|
||||
# gradle-version: '8.7'
|
||||
|
||||
# - name: Build with Gradle 8.7
|
||||
# run: gradle build
|
||||
|
||||
dependency-submission:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up JDK 8
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '8'
|
||||
distribution: 'temurin'
|
||||
|
||||
# Generates and submits a dependency graph, enabling Dependabot Alerts for all project dependencies.
|
||||
# See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md
|
||||
- name: Generate and submit dependency graph
|
||||
uses: gradle/actions/dependency-submission@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
||||
+3
-3
@@ -3,7 +3,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'org.verdurae'
|
||||
version = '1.0-SNAPSHOT'
|
||||
version = '1.1.2-SNAPSHOT'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -19,8 +19,8 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly "org.spigotmc:spigot-api:1.12.2-R0.1-SNAPSHOT"
|
||||
implementation 'me.clip:placeholderapi:2.11.6'
|
||||
compileOnly "org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT"
|
||||
implementation 'me.clip:placeholderapi:2.+'
|
||||
}
|
||||
|
||||
def targetJavaVersion = 8
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package org.verdurae.placeholderplus.API;
|
||||
|
||||
import org.verdurae.placeholderplus.Util.PlayerAPI;
|
||||
|
||||
/**
|
||||
* @author Kaminy
|
||||
* @date 2025/11/12 22:39
|
||||
* @since 1.0
|
||||
*/
|
||||
public class PlaceholderPlusApi {
|
||||
/**
|
||||
* 获取玩家占位符对应的数据值
|
||||
*
|
||||
* @param player 玩家名
|
||||
* @param placeholder 占位符名称,格式为"xxx_yyy",不需要带%
|
||||
* @return 对应的玩家插件变量值
|
||||
*/
|
||||
public static String getPlaceholder(String player, String placeholder) {
|
||||
String[] perms = placeholder.split("_");
|
||||
return PlayerAPI.getPlayerData(player).getString(perms[0] + "." + perms[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置玩家数据中的占位符
|
||||
*
|
||||
* @param player 玩家名
|
||||
* @param placeholder 占位符名称,格式为"xxx_yyy",不需要带%
|
||||
* @param value 要设置的值
|
||||
*/
|
||||
public static void setPlaceholder(String player, String placeholder, String value) {
|
||||
String[] perms = placeholder.split("_");
|
||||
PlayerAPI.getPlayerData(player).set(perms[0] + "." + perms[1], value);
|
||||
}
|
||||
}
|
||||
@@ -3,39 +3,55 @@ package org.verdurae.placeholderplus.Command;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.verdurae.placeholderplus.API.MathAPI;
|
||||
import org.verdurae.placeholderplus.API.PlayerAPI;
|
||||
import org.verdurae.placeholderplus.API.PluginAPI;
|
||||
import org.verdurae.placeholderplus.Util.MathAPI;
|
||||
import org.verdurae.placeholderplus.Util.PlayerAPI;
|
||||
import org.verdurae.placeholderplus.Util.PluginAPI;
|
||||
import org.verdurae.placeholderplus.PlaceholderPlus;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
public class PlaceholderPlusCommand implements CommandExecutor {
|
||||
|
||||
@Override
|
||||
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
|
||||
if (args.length < 1) {
|
||||
if (args.length < 2) {
|
||||
if (args.length == 1 && args[0].equals("reload")) {
|
||||
PlaceholderPlus.instance.reloadConfig();
|
||||
PlaceholderPlus.config = PlaceholderPlus.instance.getConfig();
|
||||
PluginAPI.saveAllPlayerData();
|
||||
PlayerAPI.playerData = new ConcurrentHashMap<>();
|
||||
PluginAPI.loadOnlinePlayerData();
|
||||
PlaceholderPlus.timer.cancel();
|
||||
PlaceholderPlus.newTimer();
|
||||
sender.sendMessage("已重载");
|
||||
return true;
|
||||
}
|
||||
sender.sendMessage("PlaceholderPlus:");
|
||||
sender.sendMessage("/pp 玩家名 set 变量名 数值");
|
||||
sender.sendMessage("/pp 玩家名 add 变量名 数值");
|
||||
sender.sendMessage("/pp 玩家名 remove 变量名");
|
||||
sender.sendMessage("/pp reload");
|
||||
} else {
|
||||
String holdername = args[2];
|
||||
String[] perms = holdername.split("_");
|
||||
if (perms.length < 1) {
|
||||
sender.sendMessage("请输入正确的变量名");
|
||||
return false;
|
||||
}
|
||||
if (perms.length < 2) {
|
||||
perms = new String[]{"normal", perms[0]};
|
||||
}
|
||||
switch (args[1]) {
|
||||
case "set":
|
||||
PlayerAPI.getPlayerData(args[0]).set(args[2], args[3]);
|
||||
PlayerAPI.getPlayerData(args[0]).set(perms[0] + "." + perms[1], args[3]);
|
||||
break;
|
||||
case "add":
|
||||
PlayerAPI.getPlayerData(args[0]).set(args[2], MathAPI.calculate(PlayerAPI.getPlayerData(args[0]).getDouble(args[2]), args[3]));
|
||||
PlayerAPI.getPlayerData(args[0]).set(perms[0] + "." + perms[1], MathAPI.calculate(PlayerAPI.getPlayerData(args[0]).getDouble(perms[0] + "." + perms[1]), args[3]));
|
||||
break;
|
||||
case "remove":
|
||||
PlayerAPI.getPlayerData(args[0]).set(args[2], null);
|
||||
PlayerAPI.getPlayerData(args[0]).set(perms[0] + "." + perms[1], null);
|
||||
break;
|
||||
case "reload":
|
||||
PlaceholderPlus.config = PlaceholderPlus.instance.getConfig();
|
||||
PluginAPI.saveAllPlayerData();
|
||||
PlayerAPI.playerData = new HashMap<>();
|
||||
PluginAPI.loadOnlinePlayerData();
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package org.verdurae.placeholderplus;
|
||||
|
||||
/**
|
||||
* @author Kaminy
|
||||
* @date 2025/6/10 17:03
|
||||
* @since 1.0
|
||||
*/
|
||||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(60%1);
|
||||
}
|
||||
}
|
||||
@@ -2,11 +2,12 @@ package org.verdurae.placeholderplus.Object;
|
||||
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.verdurae.placeholderplus.API.PlayerAPI;
|
||||
import org.verdurae.placeholderplus.Util.PlayerAPI;
|
||||
import org.verdurae.placeholderplus.PlaceholderPlus;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
import static org.verdurae.placeholderplus.PlaceholderPlus.config;
|
||||
|
||||
public class PlayerData {
|
||||
public String name;
|
||||
@@ -21,10 +22,14 @@ public class PlayerData {
|
||||
}
|
||||
|
||||
public FileConfiguration defaultData(FileConfiguration data) {
|
||||
Map<String, Object> value = PlaceholderPlus.config.getValues(true);
|
||||
for (String key : value.keySet()) {
|
||||
if (key.startsWith("Placeholders.")) {
|
||||
if (!data.contains(key.replace("Placeholders.", ""))) data.set(key.replace("Placeholders.", ""), value.get(key));
|
||||
for (String key : config.getStringList("Placeholders.normal")) {
|
||||
if (!data.contains("normal." + key)) {
|
||||
data.set("normal." + key, config.get("Placeholders.normal." + key));
|
||||
}
|
||||
}
|
||||
for (String key : config.getStringList("Placeholders.update")) {
|
||||
if (!data.contains("update." + key)) {
|
||||
data.set("update." + key, config.get("Placeholders.update." + key + ".max"));
|
||||
}
|
||||
}
|
||||
return data;
|
||||
|
||||
@@ -2,15 +2,23 @@ package org.verdurae.placeholderplus;
|
||||
|
||||
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.verdurae.placeholderplus.API.PlayerAPI;
|
||||
import org.verdurae.placeholderplus.API.PluginAPI;
|
||||
import org.bukkit.scheduler.BukkitTask;
|
||||
import org.verdurae.placeholderplus.Util.PlayerAPI;
|
||||
import org.verdurae.placeholderplus.Util.PluginAPI;
|
||||
import org.verdurae.placeholderplus.Command.PlaceholderPlusCommand;
|
||||
import org.verdurae.placeholderplus.Object.PlayerData;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.InputStream;
|
||||
import java.lang.reflect.Method;
|
||||
import java.net.URL;
|
||||
import java.net.URLClassLoader;
|
||||
import java.nio.channels.Channels;
|
||||
import java.nio.channels.ReadableByteChannel;
|
||||
import java.util.ArrayList;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
@@ -21,7 +29,12 @@ public final class PlaceholderPlus extends JavaPlugin {
|
||||
public static boolean jsSupport = false;
|
||||
public static ArrayList<PlaceholderExpansion> expansions = new ArrayList<>();
|
||||
public static File dataFolder;
|
||||
public static boolean autosave = true;
|
||||
public static boolean autosave;
|
||||
public static BukkitTask timer;
|
||||
public static int timeCount = 0;
|
||||
private static final String DEPENDENCY_URL = "https://repo1.maven.org/maven2/org/openjdk/nashorn/nashorn-core/15.2/nashorn-core-15.2.jar";
|
||||
private static final File LOCAL_JAR = new File("plugins/PlaceholderPlus/lib/nashorn-core.jar");
|
||||
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
@@ -37,9 +50,12 @@ public final class PlaceholderPlus extends JavaPlugin {
|
||||
logger.warning("你的运行Java中没有JS引擎,无法使用JS变量功能噢");
|
||||
logger.warning("解决办法:安装一个带有nashornJs引擎的插件或模组/使用Java15-的版本/催更我内置一个JS引擎");
|
||||
logger.warning("状态决定类:jdk.nashorn.api.scripting.NashornScriptEngine");
|
||||
logger.warning("准备开始自动下载nashorn....");
|
||||
loadDependencyIfMissing();
|
||||
}
|
||||
saveDefaultConfig();
|
||||
config = getConfig();
|
||||
autosave = config.getBoolean("Task.SaveTask.enable");
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -48,22 +64,9 @@ public final class PlaceholderPlus extends JavaPlugin {
|
||||
dataFolder = new File(getDataFolder(), "PlayerData");
|
||||
dataFolder.mkdirs();
|
||||
PluginAPI.loadAllHolder();
|
||||
PluginAPI.loadOnlinePlayerData();
|
||||
PluginAPI.loadAllPlayerData();
|
||||
getCommand("pp").setExecutor(new PlaceholderPlusCommand());
|
||||
Bukkit.getScheduler().runTaskAsynchronously(this, () -> {
|
||||
while (isEnabled() && autosave) {
|
||||
try {
|
||||
Thread.sleep(300000);
|
||||
logger.info("正在自动保存数据");
|
||||
for (PlayerData playerData : PlayerAPI.playerData.values()) {
|
||||
playerData.save();
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
autosave = true;
|
||||
});
|
||||
newTimer();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -72,4 +75,59 @@ public final class PlaceholderPlus extends JavaPlugin {
|
||||
PluginAPI.saveAllPlayerData();
|
||||
PluginAPI.unloadAllHolder();
|
||||
}
|
||||
|
||||
public static void newTimer() {
|
||||
timer = Bukkit.getScheduler().runTaskTimerAsynchronously(PlaceholderPlus.instance, () -> {
|
||||
timeCount++;
|
||||
if (PlaceholderPlus.config.getBoolean("Task.SaveTask.enable") && timeCount % PlaceholderPlus.config.getInt("Task.SaveTask.period") == 0) {
|
||||
logger.info("正在自动保存数据");
|
||||
for (PlayerData playerData : PlayerAPI.playerData.values()) {
|
||||
playerData.save();
|
||||
}
|
||||
}
|
||||
ConfigurationSection updates = PlaceholderPlus.config.getConfigurationSection("Placeholders.update");
|
||||
for (String update : updates.getKeys(false)) {
|
||||
if (timeCount % PlaceholderPlus.config.getInt("Placeholders.update." + update + ".period") == 0) {
|
||||
for (PlayerData playerData : PlayerAPI.playerData.values()) {
|
||||
if (playerData.data.getInt("update." + update) < PlaceholderPlus.config.getInt("Placeholders.update." + update + ".max")) {
|
||||
FileConfiguration data = playerData.data;
|
||||
data.set("update." + update, data.getInt("update." + update) + PlaceholderPlus.config.getInt("Placeholders.update." + update + ".amount"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 1, 20);
|
||||
}
|
||||
|
||||
public static void loadDependencyIfMissing() {
|
||||
if (!LOCAL_JAR.exists()) {
|
||||
LOCAL_JAR.getParentFile().mkdirs();
|
||||
downloadFile(DEPENDENCY_URL, LOCAL_JAR);
|
||||
}
|
||||
addJarToClasspath(LOCAL_JAR.getAbsolutePath());
|
||||
}
|
||||
|
||||
private static void downloadFile(String urlStr, File destination) {
|
||||
try (InputStream in = new URL(urlStr).openStream()) {
|
||||
ReadableByteChannel rbc = Channels.newChannel(in);
|
||||
try (FileOutputStream fos = new FileOutputStream(destination)) {
|
||||
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static void addJarToClasspath(String jarPath) {
|
||||
try {
|
||||
URL url = new File(jarPath).toURI().toURL();
|
||||
URLClassLoader loader = (URLClassLoader) ClassLoader.getSystemClassLoader();
|
||||
Method method = URLClassLoader.class.getDeclaredMethod("addURL", URL.class);
|
||||
method.setAccessible(true);
|
||||
method.invoke(loader, url);
|
||||
System.out.println("成功将依赖添加到类路径: " + jarPath);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,13 +4,23 @@ import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.verdurae.placeholderplus.API.PlayerAPI;
|
||||
import org.verdurae.placeholderplus.Util.PlayerAPI;
|
||||
|
||||
public class ThisPlaceholder extends PlaceholderExpansion {
|
||||
@Override
|
||||
public @Nullable("null") String onRequest(OfflinePlayer player, @NotNull String params) {
|
||||
String a = PlayerAPI.getPlayerData(player.getName()).getString(params);
|
||||
return (a == null) ? PlaceholderPlus.config.getString("Placeholders." + params) : a;
|
||||
public @Nullable("null") String onRequest(OfflinePlayer player, @NotNull String param) {
|
||||
String[] params = param.split("_");
|
||||
if (params.length < 2) {
|
||||
params = new String[]{"normal", params[0]};
|
||||
}
|
||||
if (params[0].equals("normal")) {
|
||||
String a = PlayerAPI.getPlayerData(player.getName()).getString("normal." + params[1]);
|
||||
return (a == null) ? PlaceholderPlus.config.getString("Placeholders.normal." + params[1]) : a;
|
||||
} else if (params[0].equals("update")) {
|
||||
String a = PlayerAPI.getPlayerData(player.getName()).getString("update." + params[1]);
|
||||
return (a == null) ? PlaceholderPlus.config.getString("Placeholders.update." + params[1] + ".max") : a;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package org.verdurae.placeholderplus.API;
|
||||
package org.verdurae.placeholderplus.Util;
|
||||
|
||||
public class MathAPI {
|
||||
public static <T extends Number> Number calculate(T number, String formula) {
|
||||
@@ -12,6 +12,6 @@ public class MathAPI {
|
||||
} else if (formula.startsWith("/")) {
|
||||
return v / Double.parseDouble(formula.substring(1));
|
||||
}
|
||||
return null;
|
||||
return v;
|
||||
}
|
||||
}
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
package org.verdurae.placeholderplus.API;
|
||||
package org.verdurae.placeholderplus.Util;
|
||||
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
@@ -7,10 +7,10 @@ import org.verdurae.placeholderplus.Object.PlayerData;
|
||||
import org.verdurae.placeholderplus.PlaceholderPlus;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashMap;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
public class PlayerAPI {
|
||||
public static HashMap<String, PlayerData> playerData = new HashMap<>();
|
||||
public static ConcurrentHashMap<String, PlayerData> playerData = new ConcurrentHashMap<>();
|
||||
|
||||
public static FileConfiguration getPlayerData(String playername) {
|
||||
if (playerData.containsKey(playername)) return playerData.get(playername).data;
|
||||
+12
-1
@@ -1,8 +1,9 @@
|
||||
package org.verdurae.placeholderplus.API;
|
||||
package org.verdurae.placeholderplus.Util;
|
||||
|
||||
import jdk.nashorn.api.scripting.NashornScriptEngineFactory;
|
||||
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.verdurae.placeholderplus.API.Abstract.SubJsPlaceholder;
|
||||
@@ -98,4 +99,14 @@ public class PluginAPI {
|
||||
expansion.unregister();
|
||||
}
|
||||
}
|
||||
public static void loadAllPlayerData() {
|
||||
File[] files = PlaceholderPlus.dataFolder.listFiles();
|
||||
if (files == null) return;
|
||||
for (File file : files) {
|
||||
if (!file.getName().endsWith(".yml")) continue;
|
||||
String name = file.getName().replace(".yml", "");
|
||||
YamlConfiguration data = YamlConfiguration.loadConfiguration(file);
|
||||
new PlayerData(name, data);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,8 +4,19 @@ JsImportPacket:
|
||||
"PAPI": "me.clip.placeholderapi.PlaceholderAPI"
|
||||
|
||||
Placeholders:
|
||||
"test": "这是一个变量"
|
||||
"test1": "这是另一个变量"
|
||||
"test2": "最好不要留空"
|
||||
"test3": "1"
|
||||
"test4": "↑纯数值类型也是可以的,可以用指令和方法加减,但要保证是纯数字,可以有小数点"
|
||||
normal:
|
||||
"test": "这是一个变量"
|
||||
"test1": "这是另一个变量"
|
||||
"test2": "最好不要留空"
|
||||
"test3": "1"
|
||||
"test4": "↑纯数值类型也是可以的,可以用指令和方法加减,但要保证是纯数字,可以有小数点"
|
||||
update:
|
||||
update:
|
||||
max: 160
|
||||
period: 1
|
||||
amount: 1
|
||||
|
||||
Task:
|
||||
SaveTask:
|
||||
enable: true
|
||||
period: 600
|
||||
@@ -1,9 +1,11 @@
|
||||
name: PlaceholderPlus
|
||||
version: '${version}'
|
||||
api-version: 1.13
|
||||
main: org.verdurae.placeholderplus.PlaceholderPlus
|
||||
author: Kaminy
|
||||
depend:
|
||||
- PlaceholderAPI
|
||||
website: https://github.com/Verdurae/PlaceholderPlus
|
||||
folia-supported: true
|
||||
commands:
|
||||
pp:
|
||||
Reference in new issue
Block a user