mirror of
https://github.com/Verdurae/PlaceholderPlus.git
synced 2026-11-25 22:25:21 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88f6259b1a | ||
|
|
4f5775e63a |
No files matched your search
+1
-1
@@ -3,7 +3,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'org.verdurae'
|
||||
version = '1.1.5-SNAPSHOT'
|
||||
version = '1.1.6-SNAPSHOT'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
@@ -6,7 +6,7 @@ function onRequest(player, params) {
|
||||
// 示例处理 如果这个玩家是作者的话返回"这个玩家是作者"
|
||||
// 你可以写任意多的判断在这里
|
||||
// params是这个调用的js的参数,形如%exampleJS_参数1_参数2_参数3%,该方法获得的params就是一整段"参数1_参数2_参数3"作为一个参数,需要手动使用_切割
|
||||
if (player.player.getName() === author) {
|
||||
if (player.getName() === author) {
|
||||
return "这个玩家是作者";
|
||||
} else {
|
||||
return "这个玩家不是作者";
|
||||
|
||||
Reference in new issue
Block a user