? ChristmasGifts
? 向你的服务器派送礼物,为玩家带来愉悦的惊喜。
此插件为你的玩家添加了礼物派送机制。
GitHub | SpigotMC.org | SpigotMC.ru | RuBukkit.org
- $ 支持版本 1.7.1-26.1+。
- $ 已在以下版本测试通过:1.7.10, 1.8.8, 1.9.4, 1.12.2, 1.13.2, 1.16.5, 1.21, 26.1
- $ 在 1.7.10 及更低版本中,礼物可能会出现非标准行为。例如,它可能会变成红石块。请勿在 1.7 版本中将其改为头颅,因为那样可能会被活塞破坏。
? 探索世界
在世界中游荡时,玩家可以收到圣诞老人的礼物,但格林奇(Grinch)是否把破烂塞了进去呢?

?️ 支持:
? 支持 Hex、MiniMessage (1.18+)。
? 语言:
- en_US (English (US))
- ru_RU (Russian)
- de_DE (German)
- Others (启用本地化后自行添加)
? 插件:
- WorldGuard, WorldEdit - 检查礼物的生成位置。
- PlaceholderAPI - 添加通过占位符与插件交互的功能,并将占位符添加到配置中的消息里。
- DecentHolograms/HolographicDisplays/FancyHolograms - 在礼物上方放置全息图。

? 检查:
- 插件会自动检测你的服务器版本,以便正确启动并与你的项目配合工作。
- 插件会检查工作条件,如有必要,将警告错误并关闭。
- 如果配置部分缺失,将替换这些部分。
- 防止礼物被破坏。

♾️ 功能:
⌨️ 命令 (/gifts):
使用 /gifts help 获取命令列表
- /gifts reload - 重载插件。
- /gifts add Player - 在玩家附近生成礼物。
- /gifts put NamePlayer Amount - 设置玩家的礼物限制数量。
- /gifts check NamePlayer - 检查玩家的礼物限制。
- /gifts loot - 获取关于子命令 loot 的帮助。
- /gifts locale - 检查客户端语言。
? 启动:
- 崩溃时保存限制和礼物的功能。
- 自动发放礼物以加快处理速度。
- 选择运行模式。该插件可以以下列运行模式工作:
命令触发 - 0
玩家移动时的几率 - 1
每隔一段时间(20 tick = 1 秒) - 2
// 建议使用模式 2 以获得更好的插件性能体验。
- 调整几率。
- 锁在世界、生物群系中生成。
- 锁带有飞行和潜行效果生成。
⚙️ 配置:
- 使用消息向玩家发送动作(1.18+ 支持 MiniMessage)。
- 礼物、战利品、全息图的设置。
? 战利品:
- 检查战利品,如有错误,错误信息将发送到控制台。
- 通过 /gifts 命令添加战利品
? 存储:
? 更新器
? 配置:
config.yml
###########################################################
# ChristmasGifts #
# 1.4 #
###########################################################
# 当更新插件时,此设置可帮助为你更新配置(请勿删除)。
version: 1.4
# 值:
# true - 启用。
# false - 禁用。
# null - 当不需要在聊天中显示此消息时设置此项。
# 获取团队信息:
# /gifts
# 设置。
settings:
# 插入十六进制颜色代码或 MiniMessage 格式文本。
# minimessage - 适用于 Paper,1.18+ 版本。
# hex - 从 1.16.5 版本开始生效,但如果你的服务器版本低于此版本,请勿更改任何内容。
translate: hex
# 你可以通过点击下方的链接并在“游戏内”部分查看来获取语言代码。
# https://minecraft.fandom.com/wiki/Language#Languages
# 或者你可以运行命令来获取你的语言代码(别忘了在客户端更改语言):
# /jparkour admin locale - 获取客户端的语言代码。
# 你可以在插件文件夹中配置本地化文件。启用 locales 时会自动创建该文件夹。
# 在插件配置中设置 true 以启用消息的本地化功能。
locales: false
# 更新通知。
updater:
# 是否启用?
# 当插件启用时会检查更新。
enabled: true
# 自动更新设置。
settings:
# 启用此项仅更新关键性更新。
required: true
# 启用此功能以更新插件至任何新版本。
release: false
# 特殊设置。
special:
# 礼物会立即掉落物品,以便在崩溃情况下玩家可以拾取资源。
autoGive: false
# 如果你的服务器经常崩溃,请启用此功能;但如果你的服务器不崩溃,请不要启用此选项。
# 此功能对插件性能有非常不好的影响。
onCrashes: false
# 支持的插件。
supports:
# 选择用于礼物上方全息图的插件。
# 如果不想使用全息图,请输入 "null"。
# 如果你在 holograms 上使用 FancyHolograms 插件,请输入 "FancyHolograms"。
# 如果你在 holograms 上使用 HolographicDisplays 插件,请输入 "HolographicDisplays"。
# 如果你在 holograms 上使用 DecentHolograms 插件,请输入 "DecentHolograms"。
hologramType: "null"
# WorldGuard & WorldEdit 支持。
worldGuard: false
# PlaceholderAPI 支持。
# 以下占位符可用:
# %ChristmasGifts_active% - 检查玩家当前是否有礼物。
# %ChristmasGifts_active_Player% - 检查玩家当前是否有礼物。
# %ChristmasGifts_limit% - 检查玩家是否有礼物领取限制。
# %ChristmasGifts_limit_Player% - 检查玩家是否有礼物领取限制。
# 输出:
# true/yes - 玩家已达到限制/礼物已激活。
# false/no - 玩家未达到限制/礼物未激活。
placeholderAPI: false
# 功能。
functions:
# 世界设置。
worlds:
# 输入 allowed/blocked(允许/禁止)。
type: blocked
# 对应类型的世界列表。
list:
- "no"
# 生物群系设置。
biomes:
# 输入 allowed/blocked(允许/禁止)。
type: blocked
# 对应类型的生物群系列表。
list:
- "no"
# 礼物设置。
gift:
# 在此处指定 null 以使用头像。在 1.7 及以下版本中会自动安装 REDSTONE_BLOCK。
material: "null"
# 适用于 ...-1.12.2 版本(设置礼物材质方块数据)示例:"1"。
id: "null"
# 礼物的 Base64 头像纹理。你可以使用昵称。
texture: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmNlZjlhYTE0ZTg4NDc3M2VhYzEzNGE0ZWU4OTcyMDYzZjQ2NmRlNjc4MzYzY2Y3YjFhMjFhODViNyJ9fX0="
# 礼物限制。
limit: true
# 最大礼物数量。
max: 5
# 以秒为单位。如果未被使用,多久后删除礼物。
remove: 30
# 礼物生成设置。
spawn:
# // 设置为 null 以便插件用其自身的设置替换这些设置。
# 设置 FallBlock 的材质。示例:"OAK_PLANKS"
type: "null"
# 适用于 ...-1.12.2 版本(设置 FallBlock 材质方块数据)示例:"5"。
id: "null"
# 使用烟花效果。
firework: true
# 以秒为单位。如果未触发,FallBlock 能存活多久?
timeLived: 10
# 搜索位置。插件会在玩家前方自动生成一个礼物。
searchLocation:
# 指定礼物下落的高度。
height: 3
# 玩家与礼物之间的距离。
distance: 3
# 模式
mode:
# 需要重启服务器。
enabled: 2
# 使用模式 2 可获得更好的插件性能体验。
# 命令触发 - 0
# 玩家移动时概率触发 - 1
# 每隔一段时间(分钟、小时)- 2
1:
# 获得礼物的完整概率。
fullChance: 100000
# 获得礼物的概率。
chance: 10
# 按定义的时间间隔检查玩家移动时的概率。
every: 100
# 单位为刻(ticks),20 刻等于 1 秒。
# 如果插件开始出现卡顿,请将 tick 值调高。
2:
# 对于模式 2,多少人可以尝试运气(null - 对模式 1 禁用,-1 - 所有玩家)。
# 如果输入数字,请不要加 "" 或 "
people: 1
# 以秒为单位
every: 900
# WorldGuard 支持模式。
# 忽略区域 - 1 及其他。
# 成员/所有者区域和 __global__ - 2
# 仅 __global__ - 3
worldGuardSupport: 2
# 阻止为玩家生成礼物的情况:
blocked:
# 当他飞行时。
fly: true
# 当他潜行时。
shift: true
# Grinch(格林奇)设置
grinch:
# 启用?
enabled: true
# 来自 Grinch 的礼物概率。
chance: 20
# 资源设置
loot:
# 启用?
enabled: true
# 如果未收到礼物,资源会自动从其内部掉落(关闭时也适用)。
taked: false
# 全息图设置。
holograms:
# 全息图的位置设置。
location:
addX: 0.5
addY: 1.2
addZ: 0.5
# 全息图行。
# 占位符格式:%placeholder%
# 可用占位符:
# %player% - 玩家名称。
# %time% - 领取礼物的截止时间前剩余时间。
lines:
- "&c礼物"
- "&f右键点击打开!"
actions:
# 动作:
# [actionbar] 消息 - 向操作栏发送消息。适用于 1.11+
# [connect] 服务器 - 将玩家发送到特定的 BungeeCord 服务器。
# 警告:需要 BungeeMessaging。这在 BungeeCord 和 WaterFall 上存在。
# 在 Velocity 上可能默认禁用。请检查你的代理配置。
# [message] 消息 - 向玩家发送消息。
# [broadcast] 消息 - 向所有玩家广播消息。
# [log] 消息 - 向控制台发送消息。
# [delay] 刻数 - 在动作之间设置延迟。单位为刻(ticks)。(20 刻 = 1 秒)
# [player] 命令 - 以玩家身份运行命令。
# [teleport] 世界;x;y;z;偏航角;俯仰角;延迟 - 将玩家传送到指定坐标。延迟单位为刻。
# [console] 命令 - 以控制台身份运行命令。
# [title] 标题;副标题;淡入时间;停留时间;淡出时间 - 向玩家发送标题。适用于 1.8+
# [sound] 音效;音量;音调;延迟 - 为玩家播放音效。延迟单位为刻。
# 在此处查找音效:https://helpch.at/docs/$version$/org/bukkit/Sound.html
# // 将 $version$ 替换为你的服务器版本,例如:https://helpch.at/docs/1.8.8/org/bukkit/Sound.html
# [effect] 类型;持续时间;放大器;延迟 - 给予玩家效果。延迟和持续时间单位为刻。
# 在此处查找效果类型:https://helpch.at/docs/$version$/org/bukkit/potion/PotionEffectType.html
# [explosion] 力量;setFire;breakBlocks;延迟;addX;addY;addZ - 创建爆炸。延迟单位为刻。
# setFire, breakBlocks - 设置为 false 或 true。addX, addY, addZ - 添加到玩家爆炸位置的 double 值。
# [bossbar] 消息;颜色;类型;时间;样式;标志 - 向玩家发送带有特定持续时间的 Boss 栏消息。适用于 1.9+
# 类型:
# stop - 在你指定的 time(秒数)后,Boss 栏将会消失。
# time - Boss 栏会显示剩余时间的动画。
# 函数:
# %time% - 剩余秒数。
# 你可以在此处找到所有函数,如 color、style 和 flag:https://helpch.at/docs/$version$/org/bukkit/boss/BossBar.html
#
# 信息:
# 发送到控制台的消息可能不会替换占位符或执行上述某些动作。
# 内置函数:
# %player% - 获取玩家名称。
# 礼物动作。
gift:
# 当礼物出现时。
spawn:
- "[message] &f"
- "[message] &f&l✽ &a圣诞老人&f 给你发了 &c一份礼物 &f— &c新年快乐! &f&l✽"
- "[message] &f"
# 如果你丢失了礼物。
loss:
- "[message] &f"
- "[message] &f&l✽ &a圣诞老人&f 拿走了 &c礼物 &f— &c你忘记捡起来了! &f&l✽"
- "[message] &f"
# 玩家成功收集了礼物。
success:
- "[message] &f&l✽ &r&f你已成功收集礼物。"
# 玩家已达到礼物数量上限。
limit:
- "[message] &f&l✽ &c你已经收集了一定数量的礼物了! :("
# 命令动作。
command:
# 玩家没有权限。
noPermission:
- "[message] &f&l✽ &c你没有权限。"
</details>
在使用插件时,你可以考虑其余的可能性。
? ChristmasGifts
? Deliver gifts to your server that will bring pleasant surprises to your players
This plugin adds a gift delivery mechanic for your players.
GitHub | SpigotMC.org | SpigotMC.ru | RuBukkit.org
- $ Versions 1.7.1-26.1+ are supported.
- $ Has been tested on versions: 1.7.10, 1.8.8, 1.9.4, 1.12.2, 1.13.2, 1.16.5, 1.21, 26.1
- $ On versions 1.7.10 and lower, the gift may have non-standard behavior. For example, it may become a redstone block. Do not change it to a head on 1.7, as it can be broken by a piston.
? Wander the world
Wandering around the world, the player can get a gift from Santa, but did the Grinch put his rags in it?

?️ Supported:
? Support Hex, MiniMessage (1.18+).
? Languages:
- en_US (English (US))
- ru_RU (Russian)
- de_DE (German)
- Others (Add them yourself by enabling localizations)
? Plugins:
- WorldGuard, WorldEdit - Check where your gifts will spawn.
- PlaceholderAPI - Add the ability to interact with the plugin via placeholders, and also add placeholders to messages from the configuration.
- DecentHolograms/HolographicDisplays/FancyHolograms - Put a hologram over the gift.

? Checks:
- The plugin will automatically detect your server version so that it starts working correctly with your project.
- The plugin will check the working conditions and, if necessary, will warn about errors and turn off.
- Replacement of some parts of the configuration in case of their absence.
- The gift was protected from destruction attempts.

♾️ Functions:
⌨️Command (/gifts):
Get a list of commands using /gifts help
- /gifts reload - Reload the plugin.
- /gifts add Player - Spawn a gift near the player.
- /gifts put NamePlayer Amount - Set your gift limit for the player.
- /gifts check NamePlayer - Check the gift limit for players.
- /gifts loot - Get help about subcommand loot.
- /gifts locale - Check your client's language.
?Launch:
- Functions for saving limits and gifts when crashing on your server.
- Auto-issue a gift to make the issue faster.
- Select the operating mode. This plugin can work in the following operating modes:
On command - 0
Chance when the player moves - 1
Every some time (20 ticks = 1 second) - 2
// Use mode 2 for a better experience with plug-in performance.
- Chance adjustment.
- The lock is spawned in the world, the biome.
- The lock is spawned with fly and shift.
⚙️Config:
- Send actions to players using messages (MiniMessage support from 1.18+).
- Settings for gifts, loot, holograms.
?Loot:
- Loot checks and in case of errors, errors will be sent to the console.
- Add loot via the /gifts command
?Storage:
- Storing limit data and gifts in case of crashes using a file.
?Updater
? Configurations:
config.yml
###########################################################
# ChristmasGifts #
# 1.4 #
###########################################################
# When updating the plugin, this setting can help to update the configuration for you (Do not delete).
version: 1.4
# Values:
# true - Enable.
# false - Disable.
# null - Set this when you don't need this message in the chat.
# Get information about the teams:
# /gifts
# Settings.
settings:
# Insert hex or minimessage.
# minimessage - for Paper, 1.18+.
# hex - It works starting from version 1.16.5, but if your server is lower than this version, do not change anything.
translate: hex
# You can find out the language code by clicking on the link below and looking at the In-Game section.
# https://minecraft.fandom.com/wiki/Language#Languages
# Or you can find out your language code by running the command (don't forget to change the language on the client):
# /jparkour admin locale - Get the client's language code.
# You can configure locales in the plugin folder where the locales. The folder will be created when you enable locales.
# in the plugin configuration. You can create your own files.
# Set true to enable locales for messages.
locales: false
# Notification of updates.
updater:
# Is it enabled?
# Updates are checked when the plugin is enabled.
enabled: true
# Auto-update settings.
settings:
# Enable this to update only critical updates.
required: true
# Enable this feature to update the plugin with any new versions.
release: false
# Special settings.
special:
# Loot immediately drops out of the gift, so that in case of a crash, the player can pick up resources.
autoGive: false
# If your server crashes frequently, then enable this feature, but if your server does NOT crash, do not enable this option.
# This feature has a very bad effect on the plugin's performance.
onCrashes: false
# Supported plugins.
supports:
# Select the plugin used for the hologram above the gift.
# Put "null" if you do not want to use holograms.
# Put "FancyHolograms" if you use this plugin on holograms.
# Put "HolographicDisplays" if you use this plugin on holograms.
# Put "DecentHolograms" if you use this plugin on holograms.
hologramType: "null"
# WorldGuard & WorldEdit support.
worldGuard: false
# PlaceholderAPI support.
# The following placeholders are available:
# %ChristmasGifts_active% - Check if the player has a gift now or not.
# %ChristmasGifts_active_Player% - Check if the player has a gift now or not.
# %ChristmasGifts_limit% - Check if the player has a limit on gifts.
# %ChristmasGifts_limit_Player% - Check if the player has a limit on gifts.
# Output:
# true/yes - The player has reached the limit/The gift is active.
# false/no - The player has not reached the limit/The gift is not active.
placeholderAPI: false
# Functions.
functions:
# Worlds settings.
worlds:
# Insert allowed/blocked.
type: blocked
# List of worlds for the type.
list:
- "no"
# Biomes settings.
biomes:
# Insert allowed/blocked.
type: blocked
# List of biomes for the type.
list:
- "no"
# Gift Settings.
gift:
# Specify null here to have a head. REDSTONE_BLOCK is automatically installed on 1.7 and below.
material: "null"
# For ...-1.12.2 (Setting up Gift material block data) Example: "1".
id: "null"
# Base64 head texture for gift. You can use nicknames.
texture: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmNlZjlhYTE0ZTg4NDc3M2VhYzEzNGE0ZWU4OTcyMDYzZjQ2NmRlNjc4MzYzY2Y3YjFhMjFhODViNyJ9fX0="
# Restriction on gifts.
limit: true
# Maximum number of gifts.
max: 5
# In seconds. After how long the gift is deleted if it has not been used.
remove: 30
# Gift Spawn Settings.
spawn:
# // Set null so that the plugin replaces these settings with its own.
# Setting the FallBlock view for the material. Example: "OAK_PLANKS"
type: "null"
# For ...-1.12.2 (Setting up FallBlock material block data) Example: "5".
id: "null"
# Use of fireworks.
firework: true
# In seconds. How long will FallBlock's life last if it is not activated?
timeLived: 10
# Search for a location. The plugin automatically spawns a gift in front of the player.
searchLocation:
# Specify the height from which the gift will fall.
height: 3
# The distance from the player to the gift.
distance: 3
# Mode
mode:
# Restart required.
enabled: 2
# Use mode 2 for a better experience with plug-in performance.
# On command - 0
# Chance when the player moves - 1
# Every some time (minutes, hours) - 2
1:
# A full chance for a gift.
fullChance: 100000
# A chance gift.
chance: 10
# Checks the chances when the player moves every defined time.
every: 100
# Measured in ticks, 20 ticks is 1 second.
# Set the ticks value higher if the plugin starts causing lags.
2:
# How many people will try their luck for Mode 2 (null - disabled for 1 mode, -1 - all players).
# If you put a number, then put it without "" or "
people: 1
# In seconds
every: 900
# WorldGuard support mode.
# Ignore the region - 1 and others.
# Member/Owner region and __global__ - 2
# Only __global__ - 3
worldGuardSupport: 2
# Blocking the spawn of a gift for the player when:
blocked:
# When he flies.
fly: true
# When he's on the shift.
shift: true
# Grinch Settings
grinch:
# Enable?
enabled: true
# A chance for a gift from the grinch.
chance: 20
# Resource Settings
loot:
# Enable?
enabled: true
# If the gift was not received, the loot automatically drops out of it (When turned off too).
taked: false
# Hologram Settings.
holograms:
# Location settings for the hologram.
location:
addX: 0.5
addY: 1.2
addZ: 0.5
# Hologram Lines.
# Placeholder form: %placeholder%
# Available placeholders:
# %player% - player's name.
# %time% - the time before which you can receive the gift.
lines:
- "&cGift"
- "&fPress the RMB to open it!"
actions:
# Actions:
# [actionbar] message - Send the actionbar with your message. For 1.11+
# [connect] server - Send a player to a specific BungeeCord server.
# WARNING: Requires BungeeMessaging. This is present on BungeeCord and WaterFall.
# On Velocity it might be disabled by default. Check your proxy config.
# [message] message - Send a message to the player.
# [broadcast] message - Send a message to all players.
# [log] message - Send a message to the console.
# [delay] ticks - Make a delay between actions. In ticks. (20 ticks = 1 second)
# [player] command - Run the command on behalf of the player.
# [teleport] world;x;y;z;yaw;pitch;delay - Teleport the player to the specified coordinates. The delay is measured in ticks.
# [console] command - Run the command on behalf of the console.
# [title] title;subtitle;fadeIn;stay;fadeOut - Send the title to the player. For 1.8+
# [sound] sound;volume;pitch;delay - Perform a sound for the player. The delay is measured in ticks.
# Search for sounds here: https://helpch.at/docs/$version$/org/bukkit/Sound.html
# // Replace $version$ with the version of your server, for example: https://helpch.at/docs/1.8.8/org/bukkit/Sound.html
# [effect] type;duration;amplifier;delay - Give the effect to the player. The delay and duration is measured in ticks.
# Find the types of effects here: https://helpch.at/docs/$version$/org/bukkit/potion/PotionEffectType.html
# [explosion] power;setFire;breakBlocks;delay;addX;addY;addZ - Create an explosion. The delay is measured in ticks.
# setFire, breakBlocks - set to false or true. addX, addY, addZ - double values that are added to the player's explosion location.
# [bossbar] message;color;type;time;style;flag - Send a bossbar to a player with a message for a specific time. For 1.9+
# Types:
# stop - The bossbar will disappear after the time you specified in time (seconds)
# time - Bossbar will animate the time that is running out.
# Functions:
# %time% - Seconds left.
# You can find all the functions like color, style, and flag here: https://helpch.at/docs/$version$/org/bukkit/boss/BossBar.html
#
# Info:
# Messages sent to the console may not replace placeholders or perform certain actions above.
# Built-in functions:
# %player% - Get the player name.
# Gift actions.
gift:
# When a gift appears.
spawn:
- "[message] &f"
- "[message] &f&l✽ &aSanta Claus&f has sent you &ca gift &f— &cHappy New year! &f&l✽"
- "[message] &f"
# If you lose a gift.
loss:
- "[message] &f"
- "[message] &f&l✽ &aSanta Claus&f took &cthe gift &f— &cYou forgot to pick it up! &f&l✽"
- "[message] &f"
# The player has successfully collected the gift.
success:
- "[message] &f&l✽ &r&fYou have successfully collected the gift."
# The player has reached the gift limit.
limit:
- "[message] &f&l✽ &cYou have already collected a certain number of gifts! :("
# Command actions.
command:
# The player has no permission.
noPermission:
- "[message] &f&l✽ &cYou don't have permission."
You can consider the rest of the possibilities when using the plugin.
评论 0
登录后参与评分
还没有评论,来抢沙发吧