.神

[tr=transparent]MVdW Placeholders下载后使用他的变量但是不会解析,怎么样才能使用他的变量?[tr=transparent]怎么样用
[tr=transparent]PlaceholderAPI插件使用MVdW Placeholders变量?

狡诈师
帖子很乱,[tr=transparent]是什么东西?
(这个问题可以去开发板块问嘛。。。)
在我回答之前,先问清楚(我不太明白):
你是问这个?:让papi用你插件的变量?同时让你插件用papi的变量?

.神
爱国民主 发表于 2018-2-12 16:22
帖子很乱,[tr=transparent]是什么东西?
(这个问题可以去开发板块问嘛。。。)
在我回答之前,先问清楚( ...


MVdW Placeholders下载后使用他的变量但是不会解析,怎么样才能使用他的变量?

PlaceholderAPI插件使用MVdW Placeholders变量?

这个问题,论坛不知道怎么自己乱吗了

狡诈师
迷之芒果 发表于 2018-2-12 18:13
MVdW Placeholders下载后使用他的变量但是不会解析,怎么样才能使用他的变量?

PlaceholderAPI插件使用 ...

导入PlaceholderAPI注册和导入可以在这个原贴看
最后的是使用papi的变量粒例子
https://www.spigotmc.org/wiki/hooking-into-placeholderapi/比如我发送消息:
  1. //PlaceholderAPI.setPlaceholders(参数玩家, 参数消息)
复制代码

注册变量的话(我没试过)http://www.mcbbs.net/search.php?mod=forum&searchid=13446&orderby=lastpost&ascdesc=desc&searchsubmit=yes&kw=PlaceholderAPI




狡诈师
爱国民主 发表于 2018-2-12 18:29
导入PlaceholderAPI注册和导入可以在这个原贴看
最后的是使用papi的变量粒例子
https://www.spigotmc.org ...

哎呀,那个代码只有一行?(论坛问题)

  1. String textmessage = "%player_name%你好";
  2. String papitext = PlaceholderAPI.setPlaceholders(p.getPlayer(), textmessage);
  3. p.setJoinMessage(papitext);

  4. //还可以这样用
  5. String papitext = PlaceholderAPI.setPlaceholders(p.getPlayer(), "%player_name%你好");
  6. p.setJoinMessage(papitext);
复制代码



.神
爱国民主 发表于 2018-2-12 18:32
哎呀,那个代码只有一行?(论坛问题)

不是创建变量是MVdW这个插件的变量如何使用
https://www.spigotmc.org/wiki/mvdw-placeholders/#world
这些变量如何才能够使用
需要下载什么东西