Camouf 2

插件

· 作者 Ghosty920

Sohran 的 KamoofSMP S1 & S2 插件复刻 - 伪装、掉落头颅、仪式、战锤限制

0 本站下载 0 关注 更新于 10 个月前

最新 1.5.7 · 1.21.11 · Bukkit / Paper

一键开服(送7天)

Camouf 2

Fabric Paper Purpur Bukkit

Github Discord

English Version

The plugin Camouf, almost identical to the french youtuber and streamer Sohran's, recreated from scratch and open-source.

The concept is simple: you kill someone, he drops his head, and by using it you totally steal his identity.

Added to this is a Ritual to have the choice between 2 pacts, "the bloody" and "the forgotten", each with a contrary precision: the fact of becoming more or less strong, but in return your head will fall three times, or not at all.

Here's a replay from Sohran, showing the ritual and a quick demo of the plugin:

Everything is fully configurable, and all the code is available online. The goal is to allow everyone to access these game modifications, without having to gather (random number trust) 10k people on the same discord, or having to wait forever.

Commands

  • kamoofsmp
    • The command that encompasses all the others, and more
    • Permission: ✖️ or kamoofsmp.admin
  • undisguise
    • Use this command to remove your disguise
  • givehead
    • Use this command to give yourself any head
    • Permission: kamoofsmp.admin

Configuration

It is also available on GitHub

config.yml
# INFORMATION:
#
# 1.
# Some of the messages are compatible with MiniMessage (when indicated)
# Full guide: https://docs.advntr.dev/minimessage/format
# You can preview them with the following site: https://webui.advntr.dev/
#
# 2.
# Some parameters are available in the NickAPI configuration only
# (like the GameProfile, or the TabComplete), found in plugins/NickAPI/config.yml
#
# 3.
# When a parameter ask you for a color, you can choose between
# the ones directly in Bukkit ( https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Color.html )
# or with an hexadecimal code ( https://htmlcolorcodes.com/ )
#
# 4.
# Thank you for using this plugin! If you ever need help, have
# a problem, or just want to talk to us, everything happens on my discord!
# https://ghosty.im/discord

# Language of the plugin
# Mostly applied to admin stuff
# Values: french / english
language: english

drophead:
  # Dropping heads on death
  # This process can be replaced by another plugin or datapack
  enabled: true
  # The name of the heads
  name: "§e%player%"
  # Description of the heads
  lore:
    - "§8Do a §lRight-Click §8with this head to disguise as the player it represents"
  # This makes it possible for heads to be stackable
  # This works best with https://modrinth.com/datapack/stackable-heads
  stackable: false

disguise:
  # Being able to place the heads
  place-head: true
  # Giving the head back when doing /undisguise and when using another head
  give-back: false

# Recovering your skin when reconnecting
restaure: true

ritual:
  # Being able to do a ritual to be offered a pact
  # Recreated from Sohran's stream:  (segmented video)
  enabled: true
  # The maximum number of identical heads allowed
  dupelimit: 1

  # The minimum & maximum time to start a ritual
  # Example: 0 & 12000 will prevent it during the night
  # Put 0 & 24000 to disable it
  min-time: 0
  max-time: 24000

  # The name of the item dropped at the end of the ritual
  name: "§4Demonic Pact"
  # The lore of this book
  lore:
    - "§7by §cLucifer"
  # The content of the 2 pages to perform the different pacts
  # %command1% = Bloody Pact, %command2% = Forgotten Pact
  pages:
    - "<dark_red>Bloody Pact<br><br><red>This pact allows you to increase your life by <dark_red>5 <red>hearts, but your next death will cost you 3 heads...<br><dark_red><b>Will you accept it?<br><br><hover:show_text:\"<dark_purple>Click to accept this pact\"><click:run_command:%command1%><red><b>[Accept the Pact]"
    - "<dark_gray>Forgotten Pact<br><br><gray>This pact allows you to <dark_gray><b>leave no head</b> <gray>behind you when you die, however for the rest of this life you will be weaker<br><dark_gray><b>Will you accept it?<br><br><hover:show_text:\"<dark_purple>Click to accept this pact\"><click:run_command:%command2%>[Accept the Pact]"

  pactes:
    bloody:
      # Bloody Pact HP Boost
      # HP = 2 x Hearts, i.e. 10 = 5 Hearts
      hpboost: 10
      # The number of heads that will drop on death
      # This is enabled even when drophead is not
      heads: 3
    forgotten:
      # The Forgotten Pact Weakness Level
      weakness: 1

  # The ritual animation settings
  animation:
    # Time increased in the world every 100ms (by default)
    # Please use a divisor of your time-stop number: https://numberempire.com/18000
    time-incr: 250
    # The time at which the incrementation stop
    # On the official, it seems to be 14000, on the original showcase 18000
    time-stop: 18000
    # The speed, in ticks, at which the incrementation does
    # On the official it's 2, on the original showcase it's 3
    time-speed: 2

周围所有粒子的颜色

color: "red"
# 周围所有粒子的大小
size: 1

# 球体出现前闪电的数量
lightning-quantity: 11
# 每次生成闪电之间的间隔
lightning-interval: 2

sphere:
  # 大型蓝色球体的半径
  radius: 2
  # 构成它的粒子数量
  quantity: 750
  # 球体粒子的颜色
  color: "aqua"
  # 球体粒子的大小
  size: 1
  # 拥有熔岩粒子的概率百分比
  lava-chance: 5
  # 熔岩粒子下落时是否发出声音
  lava-sound: false

契约被接受时的动画设置

accepted: # 熔岩球体的半径 lava-radius: 1.5 # 熔岩粒子的数量 lava-quantity: 300 # 熔岩粒子下落时是否发出声音 lava-sound: false # 火焰粒子的数量 flame-quantity: 500 # 火焰粒子移动的速度/距离 flame-speed: 0.5 # 粒子是否应为蓝色 flame-soul: true

信息:

目前无法阻止将战锤放入末影箱(?)

如果不想发生这种情况,请使用第三方插件,或者直接询问你的玩家

macelimiter:

防止制作过多的战锤

这不适用于已存在的战锤

enabled: true

可制作的战锤上限

limit: 1

禁止将战锤放入末影箱

no-enderchest: true

此设置不会随语言参数改变,必须手动修改

它们使用 MiniMessage 格式

留空则不发送任何内容

messages:

你刚刚完成了伪装

%player% = 原始名称, %nick% = 伪装后的名称

disguised: "<green>你现在已伪装成 <yellow>%nick%
click:run_command:/undisguise<yellow>[点击此处] <aqua>移除你的伪装或运行 /undisguise</click>"

你在伪装状态下死亡

%player% = 原始名称, %nick% = 伪装后的名称

lostdisguise: "<red>你在死亡时失去了伪装( RIP 小丑)"

你刚刚通过 /undisguise 移除了伪装

%player% = 原始名称, %nick% = 伪装后的名称

undisguise: "<green>你刚刚脱下了伪装"

你试图在没有伪装的情况下执行 /undisguise

%player% = 玩家名称

nodisguise: "<red>你没有伪装"

仪式刚刚结束。此消息发送给所有玩家

ritualdone: "<dark_red>头颅盟约已完成。若你敢于面对,请畏惧其力量!!"

你选择了血腥盟约

%player% = 玩家名称

chose-bloody: "<red>你接受了盟约,这是你的报酬:5颗额外生命之心,最后,<dark_red>直到你下次死亡前"

你选择了被遗忘的盟约

%player% = 玩家名称

chose-forgotten: "<gray>你接受了盟约,这是你的报酬:虚弱效果 1,但 <dark_gray>你的头颅不会掉落"

你已经有一个盟约,但你试图再选择一个

%player% = 玩家名称

already-chose: "<red>你已经选择了一个契约"

你带着血腥契约死亡

%player% = 玩家名称

death-bloody: "<red>你失去了契约的效果,如果你能带着这份礼物死去,那么也许你不<dark_red>配拥有这种力量"

你带着被遗忘的契约死亡

%player% = 玩家名称

如果有人知道真正的信息,请在 Discord 上联系我们

death-forgotten: "<gray>你失去了契约的效果,但好在<dark_gray>你的头没有掉下来"

在此期间你不能开始仪式

%player% = 玩家名称

ritual-wrong-time: "<red>你现在无法开始仪式,请稍后再来"

你制作了一把战锤(启用了战锤限制器)

%player% = 玩家名称

%limit% = 可制作的战锤数量上限

%old% = 之前已制作的战锤数量

%now% = 现在已制作的战锤数量

craft-mace: "<green>你制作了一把战锤,上限为:%limit% 个"

你重新登录并恢复了伪装(如果启用了恢复功能)

%player% = 原始名称,%nick% = 伪装名称

restaure: ""

自动更新是一个用于自动检查插件新版本的模块

此功能不会导致服务器卡顿,可用于修复错误或添加新功能

autoupdate:

允许插件自动检查更新,并通知管理员与控制台

fetch: true

尝试自动下载并替换插件,无需你进行任何操作

download: true

metrics: true


</details>

</details>

KamoofSMP 第二季的插件,与 YouTuber 和主播 Sohran 的版本几乎相同,基于 [开源](https://github.com/Ghosty920/KamoofSMP-S2) 从零重建。

概念很简单:当你击杀某人时,他会掉落头部,使用它即可窃取其身份。

此外还包含一个仪式,让你可以在两个契约之间做出选择:“鲜血”与“遗忘”,两者特性相反:一个让你变强或变弱,但代价是头部掉落数量变为三倍或完全不掉落。

以下是 Sohran 的重播视频,展示了仪式及插件的快速演示:

所有设置均可高度自定义,且全部代码已公开在线。目的是让所有人都能自由使用这些游戏模组,无需聚集(比如随便说个数字)1w 人在同一个 Discord 服务器,也无需漫长等待。

## 命令
- **kamoofsmp**
  - 包含所有其他命令的主命令
  - 权限:✖️ 或 `kamoofsmp.admin`
- **undisguise**
  - 使用此命令移除你的伪装
- **givehead**
  - 使用此命令获取*任意*头颅
  - 权限:`kamoofsmp.admin`

## 配置
也可在 [GitHub](https://github.com/Ghosty920/KamoofSMP-S2/blob/main/assets/configs/french.yml) 上查看

<details>
<summary>config.yml</summary>

```yml
# 信息:
#
# 1.
# 部分消息支持 MiniMessage(当标明时)
# 完整指南: https://docs.advntr.dev/minimessage/format
# 您可以使用以下网站进行预览: https://webui.advntr.dev/
#
# 2.
# 部分设置仅在 NickAPI 的配置中可用
# (例如 GameProfile 或 TabComplete),位于 plugins/NickAPI/config.yml 中
#
# 3.
# 当某个参数设置为 'true' 或 'false' 时,请注意这仅代表“启用”和“禁用”。不接受其他任何值
# 并且您必须使用英文填写!
#
# 4.
# 当参数要求您选择颜色时,您可以在 Bukkit 的基础颜色 ( https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Color.html )
# 和十六进制代码 ( https://htmlcolorcodes.com/ ) 之间进行选择
#
# 5.
# 感谢您使用本插件!如果您需要帮助、遇到问题,或者只是想和我们聊聊,欢迎加入我的 Discord!
# https://ghosty.im/discord

# 插件语言
# 主要应用于管理功能
# 可选值: french / english
language: french

drophead:
  # 死亡时掉落头颅
  # 此过程可由其他插件或数据包替代
  enabled: true
  # 头颅的名称
  name: "§e%player%"
  # 头颅的描述
  lore:
    - "§8按住 §l右键 §8点击此头颅即可伪装成其代表的玩家"
  # 这使头颅能够堆叠
  # 与 https://modrinth.com/datapack/stackable-heads 配合效果更佳
  stackable: false

disguise:
  # 允许放置头颅
  place-head: true
  # 在使用 /undisguise 或使用其他头颅时将头颅归还给玩家
  give-back: false

# 注销/重新登录时恢复皮肤
restaure: true

ritual:
  # 允许执行仪式以获得契约提议
  # 重现 Sohran 直播中的场景:  (分段视频)
  enabled: true
  # 允许的最大相同头颅数量
  dupelimit: 1

  # 在世界上启动仪式的最小 & 最大时间
  # 示例: 0 & 12000 将阻止在夜间启动仪式
  # 设置为 0 & 24000 以禁用检查
  min-time: 0
  max-time: 24000

  # 仪式结束后掉落物品的名称
  name: "§4恶魔契约"
  # 该书的描述
  lore:
    - "§7作者 §cLucifer"
  # 用于执行不同契约的两页内容
  # %command1% = 血腥契约, %command2% = 遗忘契约
  pages:
    - "<dark_red>血腥契约<br><br><red>此契约允许你将生命值增加 <dark_red>5 <red>颗心,但你的下一次死亡将消耗 3 个头颅...<br><dark_red><b>你愿意接受吗?<br><br><hover:show_text:\"<dark_purple>点击接受此契约\"><click:run_command:%command1%><red><b>[接受契约]"
    - "<dark_gray>遗忘契约<br><br><gray>此契约允许你在死亡后<b>不留下头颅</b> <gray>,但在剩余的生命期间你会变得虚弱<br><dark_gray><b>你愿意接受吗?<br><br><hover:show_text:\"<dark_purple>点击接受此契约\"><click:run_command:%command2%>[接受契约]"

  pactes:
    bloody:
      # 血腥契约的生命值加成
      # HP = 2 x 心数,即 10 = 5 颗心
      hpboost: 10
      # 死亡时掉落的头颅数量
      # 即使 drophead 未启用,此设置也生效
      heads: 3
    forgotten:
      # 遗忘契约的虚弱等级
      weakness: 1

  # 仪式动画的不同参数
  animation:
    # 世界中每 100ms 增加的时间(默认)
    # 请使用您数字的除数: https://fr.numberempire.com/18000
    time-incr: 250
    # 增量停止的时间
    # 官方版本似乎是 14000,原始演示版是 18000
    time-stop: 18000
    # 增量进行的 ticks 速度
    # 官方版本为 2,原始演示版为 3
    time-speed: 2

    # 几乎随处可见的粒子颜色
    color: "red"
    # 几乎随处可见的粒子大小
    size: 1

    # 出现球体前的闪电数量
    lightning-quantity: 11
    # 每次闪电出现之间的间隔
    lightning-interval: 2

    sphere:
      # 大蓝球的半径
      radius: 2
      # 构成球体的粒子数量
      quantity: 750
      # 球体粒子的颜色
      color: "aqua"
      # 球体粒子的大小
      size: 1
      # 获得熔岩粒子的概率百分比
      lava-chance: 5
      # 熔岩粒子下落时是否产生声音
      lava-sound: false

  # 接受契约时的动画参数
  accepted:
    # 熔岩球的半径
    lava-radius: 1.5
    # 熔岩粒子的数量
    lava-quantity: 300
    # 熔岩粒子下落时是否产生声音
    lava-sound: false
    # 火焰粒子的数量
    flame-quantity: 500
    # 火焰粒子的速度/移动距离
    flame-speed: 0.5
    # 火焰粒子是否应为蓝色
    flame-soul: true

# 信息:
# 目前无法阻止将战锤放入末影箱
# 如果不想发生这种情况,请使用第三方插件,或直接告知您的玩家
macelimiter:
  # 防止制作过多战锤
  # 这不适用于已经存在的战锤
  enabled: true
  # 可制作的战锤上限
  limit: 1
  # 禁止将战锤放入末影箱
  no-enderchest: true

Ceci ne change pas avec le paramètre language, et doit être modifié manuellement

Ils utilisent MiniMessage

Laissez vide pour ne pas les utiliser

messages:

Tu viens de te déguiser

%player% = Nom original, %nick% = Déguisement

disguised: "<green>Tu es maintenant déguisé en <yellow>%nick%
click:run_command:/undisguise<yellow>[CLIQUE ICI] <aqua>Pour Retirer ton déguisement ou fais la commande /undisguise</click>"

Tu viens de mourir en étant déguisé

%player% = Nom original, %nick% = Déguisement

lostdisguise: "<red>Tu as perdu ton déguisement en mourrant (rip bozo)"

Tu viens de retirer ton déguisement avec /undisguise

%player% = Nom original, %nick% = Déguisement

undisguise: "<green>Tu as bien retiré ton déguisement"

Tu essayes de faire /undisguise sans déguisement

%player% = Nom du joueur

nodisguise: "<red>Tu n'as pas de déguisement"

Le rituel viens de se terminer. Ce message est envoyé à tous les joueurs

ritualdone: "<dark_red>Le Pacte des têtes a été achevé. CRAIGNEZ SON POUVOIR SI VOUS L'OSEZ !!"

Tu as choisi le Pacte Ensanglanté

%player% = Nom du joueur

chose-bloody: "<red>Tu as accepté le pacte, voici ton dû, 5 coeurs supplémentaires, enfin, <dark_red>jusqu'à ta prochaine mort"

Tu as choisi le Pacte Oublié

%player% = Nom du joueur

Si quelqu'un a le vrai message, merci de nous contacter sur discord

chose-forgotten: "<gray>Tu as accepté le pacte, voici ton dû, faiblesse 1, mais <dark_gray>ta tête ne tombera pas"

Tu as déjà un pacte mais tu essayes d'en choisir un

%player% = Nom du joueur

Si quelqu'un a le vrai message, merci de nous contacter sur discord

already-chose: "<red>Tu as déjà choisi un pacte"

Tu es mort avec le Pacte Ensanglanté

%player% = Nom du joueur

death-bloody: "<red>Tu as perdu les effets de ton pacte, si tu es capable de mourir avec ce don, alors peut-être que tu n'es pas <dark_red>méritant de ce pouvoir"

Tu es mort avec le Pacte Oublié

%player% = Nom du joueur

Si quelqu'un a le vrai message, merci de nous contacter sur discord

death-forgotten: "<gray>Tu as perdu les effets de ton pacte, mais avec cela <dark_gray>ta tête n'est pas tombée"

Tu ne peux pas lancer de rituel dans la période actuelle

%player% = Nom du joueur

ritual-wrong-time: "<red>Tu ne peux pas lancer le rituel maintenant, reviens plus tard"

Tu viens de crafter une mace (avec mace-limiter d'activé)

%player% = Nom du joueur

%limit% = Limite de maces autorisées

%old% = Ancien nombre de maces crées

%now% = Nouveau nombre de maces crées

craft-mace: "<green>Tu as crafté une MACE, le maximum possible est de : %limit% exemplaire(s)"

Tu te reconnectes et récupères ton déguisement (si restaure est activé)

%player% = Nom original, %nick% = Déguisement

restaure: ""

L'auto-update est un module permettant de check automatiquement pour une nouvelle mise à jour du plugin

Ceci Ne fait Pas lag le serveur et est utilisé pour corriger des bugs, ou ajouter des fonctionnalités

autoupdate:

Permettre au plugin de vérifier automatiquement pour des mises à jour, et prévenir les admins & la console

fetch: true

Tenter de télécharger et de remplacer automatiquement le plugin, sans action de votre part

download: true

metrics: true


</details>

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源