Multiverse-CommandDestination

插件

· 作者 benwoo1110

在进入多重宇宙传送门时执行命令!

0 本站下载 0 关注 更新于 11 个月前

需要前置:Multiverse-Core

最新 2.1.1 · 26.3 · Bukkit / Paper

一键开服(送7天)

Multiverse-CommandDestination

如果您使用的是较新的 Multiverse v5,请使用本插件的最新 v2 版本;否则请使用 v1.2.2。

这是一个小型附加组件,专为使用 Multiverse 并希望在使用传送或进入 Multiverse Portal 时运行自定义命令的玩家而设计!支持在命令中使用 PlaceholderAPI 替换变量。

您可以实现的一些功能包括:在进入 Multiverse Portal 时运行 RandomTP 或自定义命令,而这些操作以前是无法实现的。

使用方法: 打开 Multiverse-CommandDestination 文件夹中的 config.yml 文件。 按照以下说明添加您想要运行的自定义命令。

# +-------------------------------+
# | Multiverse-CommandDestination |
# +-------------------------------+
# Spigot: https://www.spigotmc.org/resources/multiverse-commanddestination.90232/
# Discord: https://discord.gg/Be59ehc
# Github: https://github.com/benwoo1110/Multiverse-CommandDestination.git
# Paypal: https://paypal.me/benergy10


# +------------------+
# | Command settings |
# +------------------+
# Put all the commands you want to run here.
# If you face yaml error, check formatting with http://www.yamllint.com/
commands:
  # The destination string is 'cmd:<name>'.
  # Prefix with 'console:' to run command from Console.
  # Prefix with 'op:' to run command as Operator.
  # Built in placeholders are:
  #   - %player% for player name.
  #   - %world% for world name player is in.
  # If you need additional placeholders, you can optionally get PlaceholderAPI plugin.

  # The following is an example.
  # To run this in Multiverse teleport command, you can do: '/mvtp cmd:examplename'
  # To set a portal destination, run '/mvp modify [portal] destination cmd:examplename'
  # Upon teleporting to the destination, the 2 say command will be executed.
  examplename:
    - 'say I am %player% at %world%.'
    - 'console:say This is running from console.'

  # A command destination pre-made if you use BetterRTP plugin
  # Simply set your portal destination with '/mvp modify [portal] destination cmd:betterrtp'
  betterrtp:
    - 'console:rtp player %player% world' # Replace world with your actual target world.

  # A command destination pre-made if you use WildernessTp plugin
  # Simply set your portal destination with '/mvp modify [portal] destination cmd:wildernesstp'
  wildernesstp:
    - 'console:wild %player%'


# +----------------+
# | Other settings |
# +----------------+
# Enable parsing of placeholders provided by placeholderAPI plugin if you have it installed.
enable-papi-hook: true

联系我: 有问题或想与我聊天吗?最好的提问地点是我的 Discord 服务器。我自己或其他人都会有人在线为您提供帮助。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源