ControlPlayer

插件

· 作者 Alihan

控制和戏弄你的玩家!

0 本站下载 0 关注 更新于 1 年前

最新 2.6.2 · 1.21.10 · Bukkit / Paper

一键开服(送7天)

这款插件是每个想要稍微恶搞一下玩家的服务器管理员所必备的!

你可能会问:“为什么?”

我告诉你为什么!

ControlPlayer 让你能够实现那些你只能梦想的事情...

你可以控制玩家的动作、物品栏、游戏模式——甚至宠物——字面意义上的 实时 控制 一切!
最棒的是……它超级简单!

顺便说一句,抱歉我的英语不太好 ;-;


预览

视频(德语)

____________________________________________________

bStats


“为什么像你说的那样简单呢?” 你可能会问。我告诉你原因!

所有命令及其权限:

要开始控制某人,只需输入以下命令:"/cp [玩家]"

此命令所需的权限为:controlplayer.use


如果你想先检查你的受害者,然后立即接管控制权:使用 "/scp [玩家]"

此命令所需的权限为:controlplayer.silent.use


要强制某人去控制其他人,请使用: "/cpo [控制器] [受害者]"

此命令所需的权限为:controlplayer.other


要强制某人停止控制,请使用: "/cps [控制器]"

此命令所需的权限为:controlplayer.stop


要强制某人停止控制,请使用: "/cps [控制器]"

此命令所需的权限为:controlplayer.stop


要获得免疫,你需要以下权限: "controlplayer.bypass"


要重新加载所有文件,请执行以下命令: "/cpr"

此命令所需的权限为:controlplayer.reload


如果要修复玩家碰撞问题(如果玩家出现 bug),请使用 "/cpf" 命令。

此命令的权限为:controlplayer.fix


在控制某人时,由控制器发送的所有消息都会以被控玩家的身份发送。
如果你不想以被控玩家的身份发送消息,只需在消息前加上 bypassmessage 即可。

默认的 bypassmessage 是 "-b ",应该看起来像这样:


要停止控制该玩家,只需执行相同的命令即可停止。你将恢复旧的物品栏、等级、生命值、位置等。



## 翻译 (messages.yml)

特别感谢 Cem 将 messages.yml 翻译成 土耳其语! 特别感谢 TheDetzer 将 messages.yml 翻译成 西班牙语! 特别感谢 Kahpot Vanilla 将 messages.yml 翻译成 希伯来语! 特别感谢 jsjsjd 将 messages.yml 翻译成 中文! 特别感谢 Sedonya 将 messages.yml 翻译成 俄语! 特别感谢 Ynntro 将 messages.yml 翻译成 法语!

警告: 由于进行了大量更改,大多数翻译文件已过期,可能包含尚未完全翻译的消息。

turkish messages.yml
messages:
  prefix: '&8[&4&lC&c&lP&8]'
  usage: '%prefix% &e/controlp [oyuncu] &7ile birisini kontrol edebilirsin.
    Tekrar yazarsan kontrol etmeyi bırakırsın.'
  being_controlled: '%prefix% kontrol ediliyorsun.'
  success: '%prefix% &akontrol ettiği oyuncu: %player%!'
  error: '%prefix% &cHata!'
  no_permission: '%prefix% &cYetki yok!'
  only_players: '%prefix% &cOyuncu değil!'
  stopped_controlling: '%prefix% &akontrol etmeyi bıraktın.'
  already_controlled: '%prefix% &c Zaten kontrol ediliyor.'
  player_imun: '%prefix% &cBu oyuncuyu kontrol edemesin.'
  self_control: '%prefix% &cKendini kontrol edemesin.!'
  not_online: '%prefix% &7Oyuncu aktif değil!'
  player_left: '%prefix% &cOyuncu oyundan çikiş yapti.'
  player_died: '%prefix% &cOyuncu öldü.'
  actionbar_text: '&aKontrol ettiği oyuncu: %player%'
spanish messages.yml
messages:
  prefix: '&8[&4&lC&c&lP&8]'
  usage: '%prefix% &7Usa &e/cp [jugador] &7para controlar a alguien. ejecuta el comando 
  de nuevo para dejar de controlarlo.'
  being_controlled: '%prefix% Te estan controlando!'
  success: '%prefix% &aEstas controlando a %player%!'
  error: '%prefix% &cAlgo ha ido mal!'
  no_permission: '%prefix% &cFaltan permisos!'
  only_players: '%prefix% &cNo eres un jugador!'
  stopped_controlling: '%prefix% &aHas parado de controlar a un jugador!'
  already_controlled: '%prefix% &cAlguien mas lo esta controlando!'
  player_imun: '%prefix% &cNo tienes permitido controlar a este jugador!'
  self_control: '%prefix% &cNo puedes controlarte a ti mismo'
  not_online: '%prefix% &7Este jugador esta desconectado!'
  player_left: '%prefix% &cEl jugador controlado ha dejado el server!'
  player_died: '%prefix% &cEl jugador controlado se ha ido'
  actionbar_text: '&aEstas controlando a %player%'
chinese messages.yml
messages:
prefix: '&8[&4&lC&c&lP&8]'
usage: '%prefix% &7使用 &e/cp [玩家] &7来控制某些玩家。如果你再次执行此命令,那么就会停止控制这位玩家'
being_controlled: '%prefix% 现在你已被%player%控制!'
success: '%prefix% &a你现在正在控制 %player%!'
error: '%prefix% &c有些东西出了问题,麻烦请看下你的指令是否有问题,还是后台报错'
no_permission: '%prefix% &c你似乎没有这个权限'
only_players: '%prefix% &c此命令只能由玩家使用!'
stopped_controlling: '%prefix% &a你已经停止控制这位玩家'
already_controlled: '%prefix% &c已经有人控制这位玩家了'
player_imun: '%prefix% &c你无法控制这位玩家'
self_control: '%prefix% &c你不能控制你自己!'
not_online: '%prefix% &7该玩家当前不在线,所以你无法控制'
player_left: '%prefix% &c你在控制的玩家现已离线'
player_died: '%prefix% &c你控制的玩家已死亡'
actionbar_text: '&a你在控制 %player% 这名玩家'
hebrew messages.yml
messages:
  prefix: '&8[&4&lק&c&ל&8]'
  usage: '%prefix% &7使用命令 &e[玩家名称] cp/ &7来接管一名玩家。再次输入此命令以停止控制该玩家'
  being_controlled: '%prefix% 你当前正被他人控制!'
  success: '%prefix% &a!%player% 你正在控制玩家'
  error: '%prefix% &c出错了!'
  no_permission: '%prefix% &c权限不足!'
  only_players: '%prefix% &c你不是玩家!'
  stopped_controlling: '%prefix% &a你已停止控制该玩家!'
  already_controlled: '%prefix% &c已有其他人控制了该玩家!'
  player_imun: '%prefix% &c你无权控制该玩家!'
  self_control: '%prefix% &c你不能控制自己!'
  not_online: '%prefix% &7该玩家未在线!'
  player_left: '%prefix% &c被你控制的玩家已离开服务器/退出游戏!'
  player_died: '%prefix% &c被你控制的玩家死亡了!'

actionbar_text: '&a%player% 你正在控制玩家'

</details>

<details>
<summary>russian messages.yml</summary>

```yaml
messages:
prefix: '&8[&4&lC&c&lP&8]'
normal_usage: '%prefix% &7使用 &e/cp <玩家> &7来控制玩家。要停止控制,再次输入该命令即可。'
silent_usage: '%prefix% &7使用 &e/scp <玩家> &7来控制玩家。要停止控制,再次输入该命令即可。'
being_controlled: '%prefix% 当你正在被他人控制时,无法控制其他玩家!'

normal_success: '%prefix% &a您正在控制 %player%! silent_success: '%prefix% &a您正在操控 %player%! 点击 &e鼠标左键 3次§a以接管玩家控制。按住 &e潜行键&a并点击 &e鼠标左键 3次§a可重新释放该玩家。' error: '%prefix% &c发生了一些错误!' no_permission: '%prefix% &c权限不足!' not_alive: '%prefix% &c您要控制的玩家已死亡。'

only_players: '%prefix% &c您不是玩家!' stopped_controlling: '%prefix% &a您已停止控制该玩家。' already_controlled: '%prefix% &c已有其他人在控制该玩家!' player_imun: '%prefix% &c您未被授权控制该玩家!' self_control: '%prefix% &c您无法控制自己。' not_online: '%prefix% &7该玩家不在线!' player_left: '%prefix% &c您所控制的玩家已离开服务器!' player_died: '%prefix% &c您所控制的玩家已死亡!' controlling_actionbar_text: '&a您正在控制 %player%' waiting_actionbar_text: '&e左键点击 3 次 &7以切换控制模式。' spy_chat_message: '%prefix% &2%player% &a在受控状态下尝试使用聊天:&e%message%'

  
</details>

<details>
<summary>france messages.yml</summary>

```yaml
messages:
  prefix: '&8[&4&lC&c&lP&8]'
  normal_usage: '%prefix% &7输入 &e/cp [玩家] &7以控制一名玩家。再次执行此命令可停止控制。'
  silent_usage: '%prefix% &7输入 &e/scp [玩家] &7以静默控制一名玩家。再次执行此命令可停止控制。'
  being_controlled: '%prefix% 你正在被控制!'
  normal_success: '%prefix% &a你正在控制 %player%!'
  silent_success: '%prefix% &a你正在控制 %player%!按&e左键点击3次 &a以接管该玩家的控制权。按住 &e蹲下 &a并按&e左键点击3次 &a以释放该玩家!'
  error: '%prefix% 发生了一些意外情况!'
  no_permission: '%prefix% &c你没有权限!'
  not_alive: '%prefix% &c你想控制的玩家已死亡(不在游戏中)。'
  only_players: '%prefix% &c你不是一个玩家!'
  stopped_controlling: '%prefix% &a你已停止控制!'
  already_controlled: '%prefix% &c已有其他人正在控制该玩家!'
  player_imun: '%prefix% &c你无权控制该玩家!'
  self_control: '%prefix% &c你不能控制自己!'
  not_online: '%prefix% &7该玩家未在线!'
  player_left: '%prefix% &c被控制的玩家已离开服务器!'
  player_died: '%prefix% &2%player% &a试图发言,但他正被控制:&e%message%'
  controlling_actionbar_text: '&a你正在控制 %player%'
  waiting_actionbar_text: '&e左键点击3次 &7以启用/禁用控制!'
  spy_chat_message: '%prefix% &2%player% &a试图发言,但他正被控制:&e%message%'
german messages.yml
messages:
  prefix: '&8[&4&lC&c&lP&8]'
  usage: '%prefix% &7使用 &e/cp [player] &7来操控他人。再次输入命令以停止操控。'
  being_controlled: '%prefix% 你当前正在被操控。'
  success: '%prefix% &a你正在操控 %player%!'
  error: '%prefix% &c发生了一个错误!'
  no_permission: '%prefix% &c你没有权限这样做!'
  only_players: '%prefix% &c你不是玩家!'
  stopped_controlling: '%prefix% &a你已停止操控该玩家!'
  already_controlled: '%prefix% &c已有其他人正在操控该玩家!'
  player_imun: '%prefix% &c你不允许操控此玩家!'
  self_control: '%prefix% &c你不能操控自己!'
  not_online: '%prefix% &7该玩家不在线!'
  player_left: '%prefix% &c你之前操控的玩家已离开游戏!'
  player_died: '%prefix% &c你操控的玩家已死亡!'
  actionbar_text: '&a你正在操控 %player%'
english messages.yml (default)
messages:
  prefix: '&8[&4&lC&c&lP&8]'
  normal_usage: '%prefix% &7使用 &e/cp [player] &7来操控他人。再次执行此命令以停止操控该玩家。'
  silent_usage: '%prefix% &7使用 &e/scp [player] &7来操控他人。再次执行此命令以停止操控该玩家。'
  being_controlled: '%prefix% 你当前正在被操控!'
  normal_success: '%prefix% &a你正在操控 %player%!'
  silent_success: '%prefix% &a你正在操控 %player%!按 &e左键点击 3次 &a以接管对该玩家的操控。按住 &e潜行 &a并按 &e左键点击 3次 §a以解除对该玩家的操控!'
  error: '%prefix% &c出错了!'
  no_permission: '%prefix% &c缺少权限!'
  not_alive: '%prefix% &c你想操控的玩家并非存活状态。(已死亡)'
  cannot_specific_control: '%prefix% &c你只能操控指定的玩家!'
  only_players: '%prefix% &c你不是玩家!'
  stopped_controlling: '%prefix% &a你已停止操控该玩家!'
  already_controlled: '%prefix% &c已有其他人正在操控该玩家!'
  player_imun: '%prefix% &c你不允许操控此玩家!'
  self_control: '%prefix% &c你不能操控自己!'
  not_online: '%prefix% &7该玩家不在线!'
  player_left: '%prefix% &c你之前操控的玩家已离开服务器!'
  player_died: '%prefix% &c你操控的玩家已死亡!'
  controlling_actionbar_text: '&a你正在操控 %player%'
  waiting_actionbar_text: '&e左键点击 3次 &7以切换操控模式!'
  spy_chat_message: '%prefix% &2%player% &a在受控状态下尝试使用聊天:&e%message%'
  other_usage: '%prefix% &7使用 &e/cpo [controller] [victim] &7强制某人操控另一人。再次执行此命令以停止操控。'
  other_offline: '%prefix% %player% 不在线!'
  other_dead: '%prefix% &c%player% 已死亡!'
  other_already_controlled: '%prefix% &c%player% 已被操控!'
  other_success: '%prefix% &a你强制 %player% 去操控 %victim%!'
  other_stopped: '%prefix% &a%player% 不再进行操控了!'
  other_same: '%prefix% &c操控者和被操控者不能是同一人!'
  stop_usage: '%prefix% &7使用 &e/cps [controller] &7强制某人停止操控。'
  stop_offline: '%prefix% %player% 不在线!'
  stop_no_session: '%prefix% &c%player% 没有正在操控任何人!'
  stop_success: '%prefix% &a你强制 %player% 停止了操控!'

____________________________________________________

The config.yml

settings:
  apimode: false
  updater:
    enabled: true
    delay: 18000
  commandaliases:
    control:
    - cp
    - cplayer
    - controlp
    - control
    fix:
    - cpf
    - controlplayerf
    - cpfix
    reload:
    - cpr
    - controlplayerr
    - cpreload
    silentcontrol:
    - scp
    - scontrolplayer
    - scplayer
  system:
    asyncchat: false
    ignorebypass: false
  control:
    running:
      sync:
        foodlevel: true
      forcechat:
        enabled: true
        bypassmessage: '-b '
      syncdelay: 0
      actionbar:
        enabled: true
      cancelchat: false
      spychat: true
      dropitems: true
      cancelcommands: false
      syncteleport: false
    stop:
      return:
        inventory: true
        location: true
        level: true
        health: true
        foodlevel: true
        gamemode: true
        flight: true
        effect: true

____________________________________________________

API

API 使得能够直接与插件进行交互。这是什么意思?例如,你有另一个插件,想要检查 ControlPlayer 是否发现有人正在操控他人。你可以使用我的 EventManager 来检测某人是否开始、停止或仍在操控他人。

以下是一个示例:

ControlPlayerEventManager.register(new ControlPlayerEvent() {
    @Override
    public ControlPlayerEventType type() {
        return ControlPlayerEventType.RUNNING; // 类型:START, RUNNING, STOP
    }

    @Override
    public void execute(Player controller, Player victim) {
        // 做一些事情
    }
});

如果你在 config.yml 中启用了 apimode,插件的所有默认同步方法将被禁用,仅执行下面的代码!这适合用于编写你自己的代码来控制他人。

注意:仅在你清楚自己在做什么的情况下才启用此选项!


为什么你还在阅读?立即下载并恶作剧你的玩家吧! :D


https://www.rayzs.de/rayzsshield/assets/support.png

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

评论 0

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

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源