mirror of
https://github.com/Verdurae/PlaceholderPlus.git
synced 2026-11-26 14:45:21 +08:00
修改代码结构
添加了api
This commit is contained in:
1 parent
11289fa6c6
commit
4d2919cfb3
10 files changed
+101
-15
No files matched your search
@@ -3,9 +3,9 @@ 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.concurrent.ConcurrentHashMap;
|
||||
@@ -34,6 +34,13 @@ public class PlaceholderPlusCommand implements CommandExecutor {
|
||||
} 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(perms[0] + "." + perms[1], args[3]);
|
||||
|
||||
Reference in new issue
Block a user