BigDoors v1
BigDoors 是一款适用于 Minecraft 服务器模组 Spigot 的插件。它的目标是通过引入可动画化的方块来增强你的服务器体验,你可以利用这些方块制作各种大型(可动画化)的门。
这是 SpigotMC 版 BigDoors 插件 v1 的代码仓库。名为 AnimatedArchitecture 的新版本正在开发中,详见此处。
如果你在使用此插件时遇到问题,请创建一个 Issue 或加入我们的 Discord。
你可以在 Spigot 页面 下载此插件。
预览:
普通门:
吊桥:
获取最新的开发构建版本:
在此处下载最新的开发构建版本。如果你决定使用它,请注意以下几点:
- 无论你的设置如何,一旦有最新的稳定版本发布,开发构建版本会自动更新到该版本。
- 开发构建版本的更新频率较高,因此请经常回来查看(URL 保持不变)。
- 这些构建版本可能不如正式发行版那样经过充分测试。
- 开发构建版本可能与最新正式发行版不完全向后兼容。例如,如果开发构建版本更改了数据库模式(那么旧版本将无法再读取数据),就会出现这种情况。因此请务必进行备份!
更新的变更日志列表可在此处找到。
功能列表:
- 以下类型的大型动画门:
- 大门 (Big Door)
- 吊桥 (Drawbridge)
- 闸门 (Portcullis)
- 滑动门 (Sliding Door)
- 用于管理门的图形用户界面 (GUI)。
- 红石支持。
- 门创建向导,引导你完成门的创建过程。
- 多语言翻译支持。
- 活跃的开发者支持。
- 支持多种保护类插件,例如:
附加组件 (Add-ons)
常见问题解答 (FAQ):
- 你会支持 Minecraft 1.8 版本吗?
- 不会。请升级你的服务器!
- 我如何通过控制台/命令方块控制门?
- 当从控制台/命令方块发出命令时,你不能使用门的名称。相反,你必须使用 doorUIDs(门唯一标识符)。
资源包:
本插件附带一个可选的资源包,其中仅包含在门动画播放期间播放的声音。它不用于动画本身。
如果你不想使用该资源包,可以在配置文件中将其禁用。查找 resourcePackEnabled 选项。如果你已经在服务器上安装了其他资源包,则应始终禁用此选项,否则它可能会覆盖你现有的资源包或导致其他问题。由于该资源包仅包含声音,禁用它仅意味着不会播放声音。其他所有功能仍将按预期工作。
配置文件中还列出了每个受支持的 Minecraft 版本对应的资源包 URL。如果你想自行托管或将它与现有资源包合并,可以使用这些 URL 手动下载资源包。
翻译文件:
- (0.1.8.35+) 德语,由 ZockerStation 提供。
- (0.1.8.16) 德语,由 Lord_Junes 提供。
- (0.1.8.15) 西班牙语,由 Link_1213 提供。
- (0.1.8.18) 挪威语,由 Themarwik 提供。
- (0.1.8.27) 日语,由 keiichi 提供。
- (0.1.8.30) 简体中文,由 sheip9 提供。
- (0.1.8.32) 意大利语,由 MiniMoro 提供。
你有自己的翻译?请告诉我!
注意,为旧版本创建的翻译文件可能仍然有效。如果有缺失的消息,你会在日志中看到通知。
不受支持的环境:
如果插件在启动时检测到处于不受支持的环境中,它将中止初始化以防止出现问题。你可以通过在配置中启用不安全模式来强制启用插件,但这不受官方支持!!
以下服务器被视为不受支持:
- CatServer
- Mohist
- Magma
- Glowstone
- Akarin
此外,将以下插件与 BigDoors 一起使用也不受支持:
视频教程:
更多示例:
已知问题:
- 由于门中的每个方块都被转换为实体,较大的门可能会对客户端造成性能负担。
- 由于其性质,防延迟插件往往会移除此插件所使用的实体。这会导致方块在短暂延迟后暂时消失并在打开位置重新出现。为防止这种情况,请将名为 "BigDoorsEntity" 的 "FallingBlock" 类型实体添加到其白名单中。
命令与权限:
从控制台或命令方块开门时,不能使用名称!
您需要使用 DoorUID。
为什么?因为名称不是唯一的,而 DoorUID 是唯一的。
这一限制意味着当您使用某个名称创建新门时,您的命令方块不会因该名称已被占用而失效。
权限设置如下:bigdoors.user.* 将授予用户所有通常应被允许执行的操作。
任何管理员专属访问权限则受 bigdoors.admin.* 保护。
这应为配置插件提供一个良好的起点。
在所有以下命令中,尖括号之间的任何参数都是必需的(即 <RequiredArgument>),方括号之间的参数是可选的(即 [OptionalParameter])。
当说明中提到 DoorID 时,这意味着您可以使用门的名称或其(数值)UID。
用户权限:
| 权限 |
命令 |
说明 |
| bigdoors.own.<numberOfDoors> |
- |
设置该组可以拥有的门的最大数量。将 <numberOfDoors>
替换为实际的门数量。例如:bigdoors.own.4。 |
| bigdoors.user.gui |
/BigDoors menu
/bdm |
打开 BigDoors GUI。 |
| bigdoors.user.createdoor.<type> |
/NewDoor [-BD||-DB||-PC||-SD] |
命令用法:创建指定类型的新门。
可用标志:
-BD:BigDoor(大门)
-DB:DrawBridge(吊桥)
-PC:Portcullis(闸门)
-SD:SlidingDoor(滑动门)
使用示例:/newdoor -PC MyNewPortcullis
如果未另行指定,则默认为大门。
所有这些门也可以通过 GUI 创建。
权限用法:将 <type> 替换为以下类型之一:
door(门)
drawbridge(吊桥)
slidingdoor(滑动门)
portcullis(闸门)
例如:bigdoors.user.createdoor.bigdoor |
| bigdoors.user.base |
/SetBlocksToMove <doorID> <BlocksToMove> |
设置此门尝试移动的方块数量。
仅适用于如闸门和滑动门等类型的门。
使用示例:/setblockstomove MyDoor 12 |
| bigdoors.user.base |
/SetDoorRotation <doorID> <direction> |
更改门尝试移动的方向。有效方向包括:
north(北)
east(东)
south(南)
west(西)
clockwise(顺时针,或:clock)
counterclockwise(逆时针,或:counter)
使用示例:/setdoorrotation MyDoor north |
| bigdoors.user.base |
/NameDoor <DoorName> |
在创建门的过程中设置门的名称。
使用示例:/namedoor MyDoor |
| bigdoors.user.base |
/BDCancel |
取消当前的对象创建过程。 |
| bigdoors.user.deletedoor |
/DelDoor <DoorID> |
允许你删除一扇大门。 |
| bigdoors.user.toggledoor |
/OpenDoor <DoorID> [DoorID2] ... [DoorID..]
/CloseDoor <DoorID> [DoorID2] ... [DoorID..]
/ToggleDoor <DoorID> [DoorID2] ... [DoorID..] |
打开、关闭或切换门(任何类型)。单个命令中可以指定多个门。
可以通过名称(仅在作为玩家执行命令时)或 UID(玩家和控制台/命令方块均可)来指定一扇门。
这里的“切换”意味着如果门当前处于打开状态,则将其关闭;如果当前处于关闭状态,则将其打开。 |
| bigdoors.user.listdoors |
/ListDoors [DoorName] |
列出你拥有的所有门,如果提供了特定名称,则仅列出该名称的门。 |
| - |
/ListDoors <DoorName || PlayerName || PlayerUUID> |
列出具有给定名称的所有门(及其所有者),或者列出某个玩家拥有的所有门
(PlayerName 只能用于在线玩家!)。
仅在控制台中有效! |
| bigdoors.user.doorinfo |
/DoorInfo <DoorID> |
允许你获取有关指定门的信息。 |
| bigdoors.user.relocatepowerblock |
/ChangePowerBlockLoc <DoorName> |
允许你更改指定门的动力方块的位置。
仅对玩家有效! |
| bigdoors.user.inspectpowerblock |
/InspectPowerBlockLoc |
为你提供一把工具,用该工具点击任意动力方块即可获取其对应的门信息。
仅对玩家有效! |
| bigdoors.user.addowner |
/BigDoors AddOwner <DoorID> <PlayerName> |
将另一个用户添加为指定门的所有者。
用法示例:/bigdoors addowner MyDoor pim16aap2 |
| bigdoors.user.removeowner |
/BigDoors RemoveOwner <DoorID> <PlayerName> |
移除指定门的另一位所有者。
用法示例:/bigdoors removeowner MyDoor pim16aap2 |
| bigdoors.user.setclosetime |
/SetAutoCloseTime <DoorID> <AutoCloseTime> |
设置门在打开后尝试自动关闭的时间间隔。
负数值表示门不会尝试自动关闭(当然,你仍可使用红石)。
用法示例:/setautoclosetime MyDoor 10,
表示门将在打开后 10 秒自动关闭。 |
管理员权限:
| bigdoors.admin.pausedoors |
/PauseDoors |
允许管理员暂停所有门。再次执行该命令以恢复门的运行。 |
| bigdoors.admin.stopdoors |
/StopDoors |
立即终止所有正在进行的动画。
所有参与动画的方块将被放置在最终位置,因此不会删除任何方块。 |
| bigdoors.admin.killbigdoorsentities |
/KillBigDoorsEntities |
清除因各种原因遗留下来的 BigDoors 实体。
通常不需要使用此功能,但在必要时非常有用。 |
| bigdoors.admin.filldoor |
/FillDoor <DoorID> |
用石头方块填充指定的门,无论发出命令的用户是否有权在此处建造,或者此处是否已有其他方块。 |
| bigdoors.admin.version |
/BigDoors Version |
获取插件的版本号。如果是开发版本,还会显示构建编号。 |
| bigdoors.admin.restart |
/BigDoors Restart |
重启插件。几乎所有内容都会重新初始化(包括配置、翻译等)。 |
| bigdoors.admin.bypass.<attribute> |
- |
允许用户修改你不拥有的门的属性。
请注意,当你访问非你拥有的门时,必须使用其 UID!
以下属性是有效的:
addowner
blockstomove
changetime
delete
direction
info
lock
relocatepowerblock
removeowner
toggle
|
在你的项目中使用 BigDoors
该项目托管在 EldoNexus 上。
目前提供两个模块:
core:包含主 API 和核心功能的模块。
hooks-api:包含用于创建保护插件挂钩接口的钩子 API 模块。
作为 Maven 依赖项
<repositories>
<repository>
<id>eldonexus</id>
<url>https://eldonexus.de/repository/maven-public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>nl.pim16aap2.BigDoors</groupId>
<artifactId>core</artifactId>
<version>0.1.8.64</version>
<scope>provided</scope>
</dependency>
</dependencies>
作为 Gradle 依赖项
maven {
name = 'eldonexus'
url = 'https://eldonexus.de/repository/maven-public/'
}
dependencies {
compileOnly 'nl.pim16aap2.BigDoors:core:0.1.8.64'
}
致谢
最后,我要感谢 Captain_Chaos 制作的 PorteCoulissante 插件。我大量使用了它,并深受启发从而开发了本插件!
BigDoors v1
BigDoors is a plugin for the Minecraft server mod Spigot. Its aim is to enhance your server with
animated blocks that can be used to create, amongst other things, big (animated) doors.
This is the repository for v1 of the BigDoors plugin for SpigotMC. A new version named AnimatedArchitecture is in development here.
If you have a problem with this plugin, please create an issue or join our Discord.
This plugin is available for download on the Spigot page.
Previews:
Regular doors:
Drawbridges:
Get the latest dev-build:
Download the latest dev-build here. If you decide to use it, there are a few things you'll have to keep in mind:
- Dev builds will automatically update to the latest stable release as soon as it's available regardless of your settings.
- The dev-builds get updated rather frequently, so check back often (URL stays the same, though).
- These builds might not be tested as thoroughly as the release builds.
- Dev builds may not always be backward compatible with the latest release build. This can occur if the database schema is changed in a dev-build for example (then the old version can no longer read the data). So be sure to make backups!
An updated changelog list can be found here.
List of features:
- Big, animated doors of the following types:
- Big Door
- Drawbridge
- Portcullis
- Sliding Door
- GUI for door management.
- Redstone support.
- Door creator to guide you through the door creation process.
- Translation support.
- Active developer support.
- Support for various protection plugins such as:
Add-ons
- Big Doors Opener (Created by Eldoria). It allows you to automatically
open doors based on conditions such as player proximity, player permissions, or time of day!
- Big Doors Physics (Created by bonn2). It adds collisions to the animated blocks!
FAQ:
- Will you add support for version 1.8 of Minecraft?
- No. Update your server!
- How can I control doors from the console/command blocks?
- When issuing commands from the console/command blocks, you cannot use the door name. Instead, you'll have to use doorUIDs.
Resource pack:
The plugin comes with an optional resource pack that only contains sounds that are played during the
animation of the doors. It is not used for the animations themselves.
If you don't want to use the resource pack, you can disable it in the config. Look for the resourcePackEnabled option.
You should always disable it if you already have a resource pack installed on your server, as it may otherwise override
your existing pack or cause other issues. Because the resource pack only contains sounds, disabling it only means that
the sounds will not be played. Everything else will still work as intended.
The config also has a list of URLs to the resource packs there for each supported version of Minecraft. You can use
these to download the resource pack manually if you want to either host it yourself or merge it with your existing pack.
Translations:
- (0.1.8.35+) German, provided by ZockerStation.
- (0.1.8.16) German, provided by Lord_Junes.
- (0.1.8.15) Spanish, provided by Link_1213.
- (0.1.8.18) Norwegian, provided by Themarwik.
- (0.1.8.27) Japanese, provided by keiichi.
- (0.1.8.30) Chinese, provided by sheip9.
- (0.1.8.32) Italian, provided by MiniMoro.
Got your own translation? Let me know!
Note that translations created for older versions may still work. If there are any missing messages you'll be notified in the log.
Unsupported Environments:
If the plugin detects that it is in an unsupported environment during startup, it will abort its initialization to prevent issues. You can force the plugin to enable anyway by enabling unsafe mode in the config, but doing so is not supported!!
The following servers are considered unsupported:
- CatServer
- Mohist
- Magma
- Glowstone
- Akarin
And using the following plugins together with BigDoors is also unsupported:
Video Tutorials:
Some more examples:
Known Issues:
- Because every block in a door is transformed into an entity, larger doors can be taxing on the client.
- Due to their nature, anti-lag plugins tend to remove the entities used by this plugin. This will result in blocks temporarily disappearing and appearing at their opened position after a slight delay. To prevent this, add entities of type "FallingBlock" named "BigDoorsEntity" to their whitelist.
Commands and Permissions:
When opening doors from the console/command block, NAMES DO NOT WORK!
You need to use DoorUIDs there.
Why? Because names are not unique, while DoorUIDs are.
This constraint means that your command blocks won't break when someone
creates a new door with the same name as the one you used.
The permissions are set up such that bigdoors.user.* will give a user access to all
actions that a user should generally be allowed to do.
Any admin-specific access is locked behind bigdoors.admin.*.
This should provide a good starting point with setting up the plugin.
In all the following commands, any parameter between angled brackets is required (i.e. <RequiredArgument>) and
parameters between square brackets are optional (i.e. [OptionalParameter]).
Whenever the instructions refer to a DoorID,
this means that you can use either the door's name or its (numerical) UID.
User Permissions:
| Permission |
Command(s) |
Explanation |
| bigdoors.own.<numberOfDoors> |
- |
Sets the maximum number of doors this group can own. Replace <numberOfDoors>
by the actual number of doors. e.g. bigdoors.own.4. |
| bigdoors.user.gui |
/BigDoors menu
/bdm |
Opens the BigDoors GUI. |
| bigdoors.user.createdoor.<type> |
/NewDoor [-BD||-DB||-PC||-SD] |
Command usage: Creates a new door of a given type.
Available flags:
-BD: BigDoor
-DB: DrawBridge
-PC: Portcullis
-SD: SlidingDoor
Example usage: /newdoor -PC MyNewPortcullis
When not otherwise specified, this defaults to a big door.
All these can also be created from the GUI.
Permission Usage: Replace <type> with one of the following types:
door
drawbridge
slidingdoor
portcullis
For example: bigdoors.user.createdoor.bigdoor |
| bigdoors.user.base |
/SetBlocksToMove <doorID> <BlocksToMove> |
Sets the number of blocks this door will try to move.
Only applies to doors such as portcullises and sliding doors.
Example usage: /setblockstomove MyDoor 12 |
| bigdoors.user.base |
/SetDoorRotation <doorID> <direction> |
Changes the direction a door will try to move. Valid directions:
north
east
south
west
clockwise (or: clock)
counterclockwise (or: counter)
Example usage: /setdoorrotation MyDoor north |
| bigdoors.user.base |
/NameDoor <DoorName> |
Sets the name of the door when you're in a door creation process.
Example usage: /namedoor MyDoor |
| bigdoors.user.base |
/BDCancel |
Cancel the current object creation process. |
| bigdoors.user.deletedoor |
/DelDoor <DoorID> |
Allows you to delete a Big Door. |
| bigdoors.user.toggledoor |
/OpenDoor <DoorID> [DoorID2] ... [DoorID..]
/CloseDoor <DoorID> [DoorID2] ... [DoorID..]
/ToggleDoor <DoorID> [DoorID2] ... [DoorID..] |
Opens, closes, or toggles a door (of any type). More than one door can be provided in a single command.
A door can be specified using either its name (only when executing the command as a player)
or its UID (both for players and the console/command blocks.)
To "toggle" a door here means that it will be closed if currently open or opened if currently closed. |
| bigdoors.user.listdoors |
/ListDoors [DoorName] |
List all doors owned by you, with a specific name if provided. |
| - |
/ListDoors <DoorName || PlayerName || PlayerUUID> |
List all doors with a given name (and who owns them) or all doors owned by a player
(PlayerName can only be used for online players!).
Only works in the console! |
| bigdoors.user.doorinfo |
/DoorInfo <DoorID> |
Allows you to get information about a given door. |
| bigdoors.user.relocatepowerblock |
/ChangePowerBlockLoc <DoorName> |
Allows you to change the location of the powerblock of a given door.
Only works for players! |
| bigdoors.user.inspectpowerblock |
/InspectPowerBlockLoc |
Gives you a tool that gives you the door info of any powerblock you hit with it.
Only works for players! |
| bigdoors.user.addowner |
/BigDoors AddOwner <DoorID> <PlayerName> |
Adds another user as an owner of the given door.
Example usage: /bigdoors addowner MyDoor pim16aap2 |
| bigdoors.user.removeowner |
/BigDoors RemoveOwner <DoorID> <PlayerName> |
Removes another user as an owner of the given door.
Example usage: /bigdoors removeowner MyDoor pim16aap2 |
| bigdoors.user.setclosetime |
/SetAutoCloseTime <DoorID> <AutoCloseTime> |
Sets the amount of time after which a door will try to close itself after it was opened.
Negative values mean the door will not try to automatically close (you can still use redstone, of course).
Example usage: /setautoclosetime MyDoor 10,
for it to automatically close 10 seconds after opening. |
Admin Permissions:
| bigdoors.admin.pausedoors |
/PauseDoors |
Allows an admin to pause all doors. Execute the command again to unpause the doors. |
| bigdoors.admin.stopdoors |
/StopDoors |
Immediately ends all active animations.
Any animated blocks are placed in their final position, so no blocks are deleted. |
| bigdoors.admin.killbigdoorsentities |
/KillBigDoorsEntities |
Kills all entities that may have been left behind by BigDoors for one reason or another.
This should not be necessary, but useful just in case. |
| bigdoors.admin.filldoor |
/FillDoor <DoorID> |
Fills in a door with stone blocks, regardless of whether the user who issues the command is allowed to
build there or not or if there are already blocks there. |
| bigdoors.admin.version |
/BigDoors Version |
Gets the version of the plugin. If it's a dev-build, it'll also show you the build number. |
| bigdoors.admin.restart |
/BigDoors Restart |
Restarts the plugin. Almost everything will be reinitialized (config, translation, etc.) |
| bigdoors.admin.bypass.<attribute> |
- |
Gives the user access to change the attribute of a door you do not own.
Note that when accessing a door you're not an owner of, you'll have to use its UID!
These are the valid attributes:
addowner
blockstomove
changetime
delete
direction
info
lock
relocatepowerblock
removeowner
toggle
|
Using BigDoors in your project
This project is hosted on EldoNexus.
There are 2 modules available:
core: The core module containing the main API and functionality.
hooks-api: The hooks API module containing interfaces for creating hooks for protection plugins.
As a Maven dependency
<repositories>
<repository>
<id>eldonexus</id>
<url>https://eldonexus.de/repository/maven-public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>nl.pim16aap2.BigDoors</groupId>
<artifactId>core</artifactId>
<version>0.1.8.64</version>
<scope>provided</scope>
</dependency>
</dependencies>
As a Gradle dependency
maven {
name = 'eldonexus'
url = 'https://eldonexus.de/repository/maven-public/'
}
dependencies {
compileOnly 'nl.pim16aap2.BigDoors:core:0.1.8.64'
}
Thanks
As a final note, I'd like to thank Captain_Chaos for making his PorteCoulissante plugin. I've used it a lot and it inspired me to make this plugin!
评论 0
登录后参与评分
还没有评论,来抢沙发吧