跳到主要内容

Tiny Essentials

Essential commands with configurable messages and cooldowns

字段

字段类型默认值描述
basePermissionString?—Permission required to use any essential command
cooldownRulesList<CooldownRule>emptyCooldown rules based on permissions. Higher priority permissions override lower ones.
CooldownRule(2)
字段类型默认值描述
permissionString—Permission to check
cooldownSecondsLong0Cooldown in seconds for players with this permission
defaultTeleportCooldownLong3Default cooldown in seconds for teleport commands (back, tpa)
allowMovementBooleanfalseWhether players can move during teleport cooldown
backBufferSizeInt10Maximum number of locations stored in /back history
tpaTimeoutSecondsLong60TPA request timeout in seconds
msgCommandStringmsgCommand name for /msg
replyCommandStringreplyCommand name for /reply
msgToggleCommandStringmsgtoggleCommand name for /msgtoggle
backCommandStringbackCommand name for /back
flyCommandStringflyCommand name for /fly
speedCommandStringspeedCommand name for /speed
suicideCommandStringsuicideCommand name for /suicide
vanishCommandStringvanishCommand name for /vanish
inventoryCommandStringinvseeCommand name for /inventory
healCommandStringhealCommand name for /heal
tpaCommandStringtpaCommand name for /tpa
tpaHereCommandStringtpahereCommand name for /tpahere
tpAcceptCommandStringtpacceptCommand name for /tpaccept
tpDenyCommandStringtpadenyCommand name for /tpadeny
tpaToggleCommandStringtpatoggleCommand name for /tpatoggle
pocketMenuCommandStringpocketmenuCommand name for /pocketmenu
joinMessageString?—Message broadcast when a player joins. Placeholders: {player}
quitMessageString?—Message broadcast when a player quits. Placeholders: {player}
msgOutgoingMessageString&7[&aYou &7-> &a{receiver}&7] &f{message}Message sent when a private message is sent. Placeholders: {sender}, {receiver}, {message}占位符
msgIncomingMessageString&7[&a{sender} &7-> &aYou&7] &f{message}Message received when getting a private message. Placeholders: {sender}, {receiver}, {message}占位符
msgSelfMessageString&cYou cannot message yourself.Message when trying to message yourself占位符
msgToggledMessageString&c{player} has private messages disabled.Message when target has messages toggled off. Placeholder: {player}占位符
msgNoConversationMessageString&cYou have no one to reply to.Message when no conversation exists for /reply占位符
msgEnabledMessageString&aPrivate messages enabled.Message when private messages are enabled占位符
msgDisabledMessageString&cPrivate messages disabled.Message when private messages are disabled占位符
backMessageString&aTeleporting to your previous location...Message when teleporting back. Placeholder: {location}占位符
backNoneMessageString&cNo previous location found.Message when no back location exists占位符
teleportCancelledMessageString&cTeleport cancelled.Message when teleport is cancelled占位符
teleportCooldownMessageString&cPlease wait {cooldown}s before teleporting again.Message when teleport is on cooldown. Placeholder: {cooldown}占位符
teleportCooldownMovementMessageString&aTeleporting in {cooldown}s. Do not move!Message when teleport cooldown requires no movement. Placeholder: {cooldown}占位符
flightEnabledSelfMessageString&aFlight enabled.Message when flight is enabled for self占位符
flightDisabledSelfMessageString&cFlight disabled.Message when flight is disabled for self占位符
flightEnabledOthersMessageString&aFlight enabled for {player}.Message when flight is enabled for others. Placeholder: {player}占位符
flightDisabledOthersMessageString&cFlight disabled for {player}.Message when flight is disabled for others. Placeholder: {player}占位符
suicideMessageString&cYou have taken your own life.Message when committing suicide占位符
vanishEnabledSelfMessageString&aYou are now invisible.Message when vanish is enabled for self占位符
vanishDisabledSelfMessageString&cYou are now visible.Message when vanish is disabled for self占位符
vanishEnabledOthersMessageString&a{entity} is now invisible.Message when vanish is enabled for others. Placeholder: {entity}占位符
vanishDisabledOthersMessageString&c{entity} is now visible.Message when vanish is disabled for others. Placeholder: {entity}占位符
healSelfMessageString&aYou have been healed.Message when healed for self占位符
healOthersMessageString&aHealed {entity}.Message when healing others. Placeholder: {entity}占位符
tpaOutgoingMessageString&aTeleport request sent to {player}.Message when sending a TPA request. Placeholder: {player}占位符
tpaIncomingMessageString&a{player} &7wants to teleport to you. &a/tpaccept &7or &c/tpadeny &7({time}s)Message when receiving a TPA request. Placeholders: {player}, {time}占位符
tpaHereOutgoingMessageString&aAsked {player} to teleport to you.Message when sending a TPA HERE request. Placeholder: {player}占位符
tpaHereIncomingMessageString&a{player} &7wants you to teleport to them. &a/tpaccept &7or &c/tpadeny &7({time}s)Message when receiving a TPA HERE request. Placeholders: {player}, {time}占位符
tpaSelfMessageString&cYou cannot teleport to yourself.Message when trying to TPA to yourself占位符
tpaToggledMessageString&c{player} is not accepting teleport requests.Message when target has TPA toggled off. Placeholder: {player}占位符
tpaSentMessageString&cYou already have a pending request to this player.Message when request already sent占位符
tpaAcceptedSelfMessageString&aAccepted teleport request from {player}.Message when accepting a TPA. Placeholder: {player}占位符
tpaAcceptedMessageString&a{player} accepted your teleport request.Message when your TPA is accepted. Placeholder: {player}占位符
tpaTeleportedMessageString&aTeleporting to {player}...Message when teleported via TPA. Placeholder: {player}占位符
tpaDeniedSelfMessageString&cDenied teleport request from {player}.Message when denying a TPA. Placeholder: {player}占位符
tpaDeniedMessageString&c{player} denied your teleport request.Message when your TPA is denied. Placeholder: {player}占位符
tpaNoRequestMessageString&cNo teleport request from {player}.Message when no request exists from specific player. Placeholder: {player}占位符
tpaNoRequestsMessageString&cYou have no pending teleport requests.Message when no requests exist at all占位符
tpaTimeoutSelfMessageString&cYour teleport request to {player} has expired.Message when TPA request times out for sender. Placeholder: {player}占位符
tpaTimeoutMessageString&cTeleport request from {player} has expired.Message when TPA request times out for receiver. Placeholder: {player}占位符
tpaEnabledMessageString&aYou are now accepting teleport requests.Message when TPA is enabled占位符
tpaDisabledMessageString&cYou are no longer accepting teleport requests.Message when TPA is disabled占位符
playerOnlyMessageString&cThis command can only be used by players.Message when command can only be used by players占位符
noPermissionMessageString&cYou do not have permission to use this command.Message when player doesn't have permission占位符
playerNotFoundMessageString&cPlayer not found: {player}Message when the named player is not online. Placeholder: {player}占位符
speedChangedSelfMessageString&aSpeed set to {speed} ({type}).Message when speed is changed for self. Placeholders: {speed}, {type}占位符
speedChangedOthersMessageString&aSet {entity}'s {type} speed to {speed}.Message when speed is changed for others. Placeholders: {speed}, {type}, {entity}占位符
speedResetSelfMessageString&aSpeed reset ({type}).Message when speed is reset for self. Placeholder: {type}占位符
speedResetOthersMessageString&aReset {entity}'s {type} speed.Message when speed is reset for others. Placeholders: {type}, {entity}占位符
godCommandStringgodCommand name for /god
feedCommandStringfeedCommand name for /feed
repairCommandStringrepairCommand name for /repair
tpposCommandStringtpposCommand name for /tppos
tpallCommandStringtpallCommand name for /tpall
getposCommandStringgetposCommand name for /getpos
gamemodeCommandStringgamemodeCommand name for /gamemode
godEnabledSelfMessageString&aGod mode enabled.Message when god mode is enabled for self占位符
godDisabledSelfMessageString&cGod mode disabled.Message when god mode is disabled for self占位符
godEnabledOthersMessageString&aGod mode enabled for {player}.Message when god mode is enabled for others. Placeholder: {player}占位符
godDisabledOthersMessageString&cGod mode disabled for {player}.Message when god mode is disabled for others. Placeholder: {player}占位符
feedSelfMessageString&aYou have been fed.Message when fed for self占位符
feedOthersMessageString&aFed {player}.Message when feeding others. Placeholder: {player}占位符
repairMessageString&aItem repaired.Message when item is repaired占位符
tpposMessageString&aTeleporting to {x}, {y}, {z}.Message when teleporting to coordinates. Placeholders: {x}, {y}, {z}占位符
tpallMessageString&a{player} teleported all players to themselves.Message sent to teleported players. Placeholder: {player}占位符
tpallCompleteMessageString&aTeleported {count} players to you.Message sent to the teleporter. Placeholder: {count}占位符
getposMessageString&aPosition: {x}, {y}, {z} &7(Yaw: {yaw}/Pitch: {pitch}) &8[{world}]Message showing current position. Placeholders: {x}, {y}, {z}, {yaw}, {pitch}, {world}占位符
gamemodeSelfMessageString&aGamemode set to {mode}.Message when gamemode is changed for self. Placeholder: {mode}占位符
gamemodeOthersMessageString&aSet {player}'s gamemode to {mode}.Message when gamemode is changed for others. Placeholders: {player}, {mode}占位符

How to use it​

Add one of these entries: every command reads its texts and cooldowns from it. All messages use & colour codes and the tokens listed in each field ({player}, {cooldown}, {time}...). Leave a message empty to hide it.

  • defaultTeleportCooldown applies to /back and /tpa (seconds). With cooldownRules, a player who has several of the listed permissions gets the largest cooldownSeconds among them. Rules can therefore only lengthen the default, not shorten it.
  • allowMovement lets players move while the cooldown runs; off, moving cancels the teleport.
  • tpaTimeoutSeconds is how long a teleport request stays open. backBufferSize is how many previous locations /back keeps.
  • joinMessage and quitMessage replace the vanilla join and quit messages (legacy colour codes, {player}).
  • The ...Command fields (flyCommand, msgCommand...) and basePermission do nothing in this version: rename a command or change its permission on the command entry instead.