正在寻找一种为您的服务器轻松创建游戏内电影的方法?ServerTours就是答案!
我能用这个做什么?
厌倦了无聊的标志和全息图?向新玩家展示你的服务器的介绍之旅!ServerTours比其他方法更具吸引力。
对于更高级的用户,ServerTours还提供了高级开发人员API(见下文)。这可以用来与其他插件集成,并提供真正的动态体验。
- 强大的电影编辑器,任何人都可以在几分钟内学会
- 以性能为核心而构建
- 编辑器可视化粒子的路线:你所看到的就是你所得到的!
- 设置标题和文本显示在每一点
- 将命令设置为在浏览中的不同点运行
- 多种类型的巡回航点(静止,轨道和插值)
- 与 Minecraft 1.17.x、1.18.x 和 1.19.x 兼容
- 配置一切!
- 全面的开发人员API,可用于与其他插件集成
- PlaceholderAPI集成
- %servertours_route% - 显示当前正在播放的路线
- %servertours_point% - 显示您所在的路线点
- %servertours_numpoints% - 显示此路线的总点数
- %servertours_percent% - 显示您已完成的路线百分比
ServerTours 需要 ProtocolLib 才能运行。
/tour create <名字>
创建新的路线 - servertours.commands.create
/tour remove <名字>
删除路线 - servertours.commands.remove
/tour edit <名字>
进入指定游览路线的编辑模式 - servertours.commands.edit
/tour exit
退出编辑模式 - servertours.commands.edit
/tour reload
重新加载 config.yml 和 lang.yml 文件 - servertours.commands.reload
/tour play <名字>
播放指定的游览路线 - servertours.commands.play(默认情况下授予每个人)
/tour play <名字> [玩家]
向指定的玩家播放游览路线 - servertours.commands.play.other
YAML:
# ___ _____
# / __| ___ _ ___ _____ _ |_ _|__ _ _ _ _ ___
# \__ \/ -_) '_\ V / -_) '_|| |/ _ \ || | '_(_-<
# |___/\___|_| \_/\___|_| |_|\___/\_,_|_| /__/
#
editMode:
# If set to true, players will be shown a persistent action bar
# notification while in edit mode. May conflict with other plugins
# that use the action bar.
actionBarEnabled: true
# If set to true, route points will automatically be selected after
# being placed.
selectPlacedPoint: false
# Route points may show warnings in chat when they are unable to
# function correctly (for example, interpolate points which don't
# have a point after them). Set to false to disable this behaviour.
enableWarnings: true
# Controls the particles shown in edit mode, which show you the
# path the player will take. This is shown for interpolate and orbit
# points.
particles:
# If set to true, particles are enabled by default. They can be
# toggled via the hotbar item.
enabledByDefault: true
# If set to true, only the path of the selected point will be
# shown. Otherwise, the path of the entire tour is shown.
showSelectedOnly: false
# ADVANCED: if set to true, alternative commands are enabled which
# perform the same functions as the hotbar items. This is useful if
# you can't use the hotbar for whatever reason (e.g. a plugin conflict).
# The server needs to be restarted/reloaded for this setting to take
# effect.
enableHotbarAltCommands: false
playMode:
# If set to true, players will be shown a persistent action bar
# notification while viewing a tour. May conflict with other plugins
# that use the action bar.
actionBarEnabled: true
# If set to true, players are allowed to exit the tour while it is
# still in progress by pressing SHIFT.
allowExit: true
# If set to true, the gamemode of touring players is set to spectator
# instead of adventure (the default). The differences between these
# are as follows:
# - Spectator mode doesn't show the crosshair or hotbar. However, the
# progress bar feature will no longer work.
# - Spectator mode shows all invisible entities. This means you will
# see, for example, the entities used by your holograms plugin.
# ServerTours itself also uses an invisible entity, which might show
# up if the player is looking down in the tour route.
# - Spectator mode isn't available on Bedrock edition.
useSpectator: false
# If set to true, the experience bar will be used to display how far
# along the tour route the player is. This doesn't work if 'useSpectator'
# is enabled.
xpBarProgress: true
# If set to true, players viewing a tour are unable to execute any
# commands.
disableCommands: false
# If set to true, players viewing a tour won't be able to see chat
# messages from other players. They also won't be able to send
# chat messages.
disableChat: false
# If set to true, dashes will be added before and after the description
# in the chat during a tour in order to clearly separate it from
# the rest of the chat. Example:
# ------------------------
# This is the description.
# ------------------------
sendDescriptionDashes: false
YAML:
# ___ _____
# / __| ___ _ ___ _____ _ |_ _|__ _ _ _ _ ___
# \__ \/ -_) '_\ V / -_) '_|| |/ _ \ || | '_(_-<
# |___/\___|_| \_/\___|_| |_|\___/\_,_|_| /__/
#
chatMenu:
header: 'Editing point '
numSet: '{} set'
none: 'None'
buttons:
preview: '[PREVIEW]'
teleport: '[TELEPORT]'
move: '[MOVE]'
remove: '[REMOVE]'
close: '[CLOSE]'
tooltips:
playerExecutor: 'Command will be run as if the player executed it themselves.'
consoleExecutor: 'Command will be run as if it was executed from the console.'
triggers:
enter: 'Command will be run when the player reaches this point'
exit: 'Command will be run when the player moves to the next point'
quit: 'Command will be run if the player exits the tour at this point'
pointTypes:
stationary: 'Makes the camera stay still at this point for some time.'
interpolate: 'Moves the camera smoothly between this point and the next at the specified speed.'
orbit: 'Rotates the camera around this point while facing it.'
confirmModes:
mouse: 'Requires the player to press the left mouse button'
keyboard: 'Requires the player to press F'
chat: 'Requires the player to click a button in the chat'
preview: 'Previews the tour route, starting from this point'
teleport: 'Teleports you to this point'
move: 'Teleport this points to you'
remove: 'Removes this point'
close: 'Closes the chat menu'
setString: 'Click to set value'
clearString: 'Click to clear value'
changeString: 'Click to change value'
alreadySelected: 'Already selected'
select: 'Click to select'
enable: 'Click to enable'
disable: 'Click to disable'
units:
second: 's'
degreesPerSecond: '°/s'
degrees: '°'
blocks: ' blocks'
labels:
label: 'Label'
pointType: 'Point Type'
timeVisible: 'Time Visible'
confirmToContinue: 'Confirm to continue'
confirmMode: ' Mode'
title: 'Title'
description: 'Description'
commands: 'Commands'
executedBy: 'Executed By'
triggeredBy: 'Triggered by'
# Orbit Mode
distance: ' Distance'
speed: ' Speed'
startingPoint: ' Starting Point'
heightOffset: ' Height Offset'
instructions:
label: 'Functions like a name for this route point, used to easily identify it. This is only used in edit mode and is not shown to touring players.'
confirmToContinue: 'If checked, the user will need to press the continue button to go to the next point.'
title: 'Shows a title to the player when they reach this point. Use \n to add a second line (subtitle).'
description: 'This text will be shown in the chat to the player when they reach this point. Use \n to add multiple lines.'
addCommand: 'Click to add a command, which will be executed once a player finishes viewing this route point. You can use %player% as a placeholder for the player name.'
continueConfirm:
mouse: 'In order to continue, press the left mouse button.'
keyboard: 'In order to continue, press F.'
button:
text: '[CONTINUE]'
instruction: 'Click to continue the tour'
commands:
errors:
playerOnly: '&cThis command can only be used by players'
noPermission: '&cYou do not have permission to use this command &7({})'
unknownSubCommand: '&cUnknown subcommand {}'
invalidNumber: '&c{} is not a number'
usage: '&cUsage: {}'
routeNotFound: '&cThat tour route does not exist. Use /tour create {} to create it.'
pointNotFound: '&cPoint #{} not found on route {}'
playerNotFound: '&cPlayer {} not found'
routeAlreadyExists: '&cA route named {} already exists'
alreadyWatching: '&cYou are already watching a tour!'
alreadyWatchingOther: '&c{} is already watching a tour!'
alreadyEditing: '&cYou are already in edit mode!'
alreadyEditingOther: '&c{} is already in edit mode! They must exit edit mode before you can edit this route.'
notWatching: '&cYou are not watching a tour!'
notEditing: '&cYou are not in edit mode!'
notWaiting: '&cYou are not waiting for confirmation'
noPoints: '&cThe route must contain at least one point'
commandsDisabled: '&cYou cannot use commands during the tour'
forcedOut: '&eYou were forced out of edit mode by {}'
forcedOutOther: '&e{} was already editing this route, but was forced out'
routeCreated: '&aRoute created. Switch to edit mode with {}'
routeRemoved: '&aRoute removed.'
particlesEnabled: '&aParticles enabled.'
particlesDisabled: '&cParticles disabled.'
reloaded: '&aConfiguration reloaded.'
warnings:
interpolateNotSet: '&c[!] &fThere is no next point to interpolate towards'
interpolateWorlds: '&c[!] &fCannot interpolate between different worlds'
hotbarItems:
createPoint: '&bCreate route point'
previewRoute: '&bPreview route'
pointSelect: '&bSelect route point'
exitEditMode: '&eExit edit mode'
toggleParticlesOn: '&bToggle Particles &a(ON)'
toggleParticlesOff: '&bToggle Particles &c(OFF)'
actionBar:
watching: 'WATCHING TOUR'
shiftToExit: 'Press SHIFT to exit'
editing: 'EDIT MODE: '
editingDesc: 'Editing {}'
points:
selectedName: '&bPoint #{}'
unselectedName: 'Point #{}'
selectInventory:
title: 'Route points ({})'
nextPage: 'Next page'
prevPage: 'Previous page'
pointTitle: '&bPoint #{}'
type: 'Type: {}'
world: 'World: {}'
coords: 'X: {} Y: {} Z: {}'
ServerTours 提供了一个易于使用的开发人员 API,可用于将其他系统集成到插件中。你可以在这里找到 Javadoc。这里也有一些基本的例子。
代码:
repositories {
maven {
name = "melluh-releases"
url = "https://repo.melluh.com/releases"
}
}
dependencies {
compileOnly "com.melluh.servertours:servertours-api:2.0.1"
}
代码:
repositories {
maven {
name = "melluh-releases"
url = uri("https://repo.melluh.com/releases")
}
}
dependencies {
compileOnly("com.melluh.servertours:servertours-api:2.0.1")
}
XML:
<repositories>
<repository>
<id>melluh-releases</id>
<url>https://repo.melluh.com/releases</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.melluh.servertours</groupId>
<artifactId>servertours-api</artifactId>
<version>2.0.1</version>
</dependency>
</dependencies>
请确保您运行的是最新版本的 ServerTours 和 ProtocolLib(但是,请确保这是您的Minecraft版本的正确版本!有关此的更多信息可以在 ProtocolLib Spigot 页面上找到。通常问题已经在新版本中修复。
如果你在点击一个路线点时被踢出服务器,试着用 Waterfall 代替 BungeeCord。