
入门指南
- 将插件文件放入服务器的
plugins 文件夹中。
- 创建模型请使用 link。
- 在模型编辑器中,使用“导出到 Minecraft”功能:选择 Summon #1 copy、Summon #2 copy 等。请勿复制 remove 命令。
- 打开位于
plugins/MagicAirdrios 文件夹中的 airdrops.yml 文件,并将命令粘贴到 commands 部分。
- 根据配置文件中的注释编辑空投设置。
- 配置
config.yml 文件以符合您的偏好。
- 您可以在
language.yml 中添加自定义翻译。
- 输入
/ma reload 重新加载配置。
- 准备就绪。
文档
查看完整插件文档 - link。
其他信息
要使用本插件,请先加载区块。
本插件支持 WorldGuard 及其标志(flags),以及 PlaceholdersAPI。此外,插件还使用其自身的占位符系统。
占位符
- {activate_time} - 显示事件剩余存活时间;
- {airdrop_name} - 显示事件名称;
- {airdrop_x} - 显示事件的 X 坐标;
- {airdrop_y} - 显示事件的 Y 坐标;
- {airdrop_z} - 显示事件的 Z 坐标;
- {airdrop_world} - 显示事件所在世界的名称;
- {x} - 显示玩家或命令执行者位置的 X 坐标;
- {y} - 显示玩家或命令执行者位置的 Y 坐标;
- {z} - 显示玩家或命令执行者位置的 Z 坐标;
- {world} - 显示玩家位置或命令执行者所在世界的名称;
- {player_name} - 显示玩家昵称;
PlaceholderAPI
目前仅在交互命令中输出
命令
使用
/ma
或
/magicairdrops
作为基础命令;
/ma create loot <id> <name>
- 创建具有特定 ID 和名称的战利品。示例:"/ma create pirate_chest #E9967APirate chest";
/ma open loot <id>
打开指定 ID 的战利品进行编辑;
/ma reload
重新加载配置,某些操作可能需要完全重启服务器;
/ma summon
触发随机事件;
/ma summon <id>
通过 ID 召唤特定事件;
/ma list
显示当前活跃的事件列表;
/ma remove <id>
删除一个活跃事件。
与其他插件的交互
为了与其他插件(如 MythicMobs、ItemsAdder、ExecutableItems 和 MythicDungeons)进行交互,您可以使用占位符。
交互示例:
- md play halloween {player_name} - 您可以制作一个传送门模型,玩家右键点击即可进入传送门;
- iagive {player_name} candy_wrapper 1
- ei give {player_name} candy_wrapper 1
CommandExecutor 示例:
- mm m spawn halloween_pumpkin 1 {world},{x},{y},{z} - 将在命令执行者坐标处生成自定义生物;
- summon minecraft:skeleton {x} {y} {z} - 将在命令执行者坐标处生成骷髅;
- execute in minecraft:the_nether run summon minecraft:skeleton {x} {y} {z} - 如果您想在下界生成;
- execute in minecraft:the_end run summon minecraft:skeleton {x} {y} {z} - 如果您想在末地生成。
权限
magicairdrops.admin - 授予使用所有命令的权限。

First steps
- Place the plugin file in your server's plugins folder.
- To create models, use link.
- In the model editor, use Export to Minecraft -> Summon #1 copy, Summon #2 copy, etc. Do not copy the remove commands.
- Open the airdrops.yml file in the plugins/MagicAirdrios folder and paste the command(s) into the commands section.
- Edit the airdrop according to the comments in the configuration
- Configure the config.yml file to suit your preferences.
- You can add your own translation to the plugin in language.yml
- Type /ma reload to reload the configurations
- ready
Documentation
See full plugin documentation - link.
OTHER
To use the plugin, first load the chunks.
The plugin supports WorldGuard and its flags, as well as PlaceholdersAPI. Furthermore, the plugin uses its own placeholder system.
Plaseholders
- {activate_time} - displays the time remaining to survive in the event;
- {airdrop_name} - Displays the event name;
- {airdrop_x} - displays the X coordinate of the event;
- {airdrop_y} - displays the Y coordinate of the event;
- {airdrop_z} - displays the Z coordinate of the event;
- {airdrop_world} - displays the name of the event world;
- {x} - displays the X coordinate of the player or location command_executer;
- {y} - displays the Y coordinate of the player or location command_executer;
- {z} - displays the Z coordinate of the player or location command_executer;
- {world} - displays the name of the world of the player's location or command_executor;
- {player_name} - displays the player's nickname;
PlaceholderAPI
Currently only outputs in interaction commands
Commands
Use
/ma
or
/magicairdrops
as a base;
/ma create loot <id> <name>
- creates loot with a specific id and name. Example: "/ma create pirate_chest #E9967APirate chest";
/ma open loot <id>
opens loot for editing by ID;
/ma reload
reloads configurations, some actions require a full server restart;
/ma summon
triggers a random event;
/ma summon <id>
calls an event by its id;
/ma list
shows a list of active events;
/ma remove <id>
deletes an active event.
For other plugins
To interact with other plugins, such as MythicMobs, ItemsAdder, ExecutableItems, and MythicDungeons, you can use placeholders.
Interaction examples:
- md play halloween {player_name} - You can make a model of the portal, so the player will enter the portal by right-clicking on it;
- iagive {player_name} candy_wrapper 1
- ei give {player_name} candy_wrapper 1
CommandExecutor examples:
- mm m spawn halloween_pumpkin 1 {world},{x},{y},{z} - will spawn a custom mob at CommandExecutor coordinates;
- summon minecraft:skeleton {x} {y} {z} - will spawn a skeleton at CommandExecutor coordinates;
- execute in minecraft:the_nether run summon minecraft:skeleton {x} {y} {z} - if you want to spawn in the nether;
- execute in minecraft:the_end run summon minecraft:skeleton {x} {y} {z} - if you want to spawn in the end.
Permissions
magicairdrops.admin - gives permission to use all commands.
评论 0
登录后参与评分
还没有评论,来抢沙发吧