Git Product home page Git Product logo

minecraft_qq's Introduction

Minecraft服务器与QQ群聊天的插件

该仓库为Minecraft_QQ服务器插件(bukkit/bungeecord)仓库

配套使用
Minebbs帖子

基础指令

  • help 获取帮助
  • chat 是否开启群聊天

管理员指令

  • say [内容] 管理员测试用发送群消息
  • socket 重连Minecraft_QQ
  • drop 断开链接Minecraft_QQ
  • reload 重读配置文件

配置文件

{
  "Join": {
    "Message": "%player%加入了服务器",
    "Send": true
  },
  "Quit": {
    "Message": "%player%退出了服务器",
    "Send": true
  },
  "ChangeServer": {
    "Message": "%player%加入了子服%server%",
    "Send": true
  },
  "ServerSet": {
    "ServerName": "MC服务器",
    "Check": "群:",
    "Message": "[%servername%]-%server%-%player%:%message%",
    "Say": "[%servername%][群消息]%player%:%message%",
    //对话模式 0 不启用对话 1 检测发送对话 2 始终发送对话
    //模式1的时候,玩家只要在说的话前面加上 配置文件的Check中的值 就会把消息发送到群里
    "Mode": 1,
    //是否发送子服的人名单
    "SendOneByOne": true,
    "SendOneByOneMessage": "[%server%-%playernumber%]-%playerlist%",
    //是否隐藏空的子服
    "HideEmptyServer": true,
    "PlayerListMessage": "%servername%当前在线人数:%playernumber%,玩家列表:%playerlist%",
    "ServerOnlineMessage": "%servername%服务器在线",
    //顶层模式 开启后不参与对话,只会执行群内发送服务器指令
    "TopMode": false,
    "CommandDelay": 2000
  },
  "Servers": {
    "lobby": "登陆大厅",
    "server": "服务器"
  },
  "SendAllServer": {
    //将消息发送到所有子服
    "Enable": true,
    "Message": "[%servername%-%server%]玩家:[%player%]发送群消息:[%message%]",
    //只发送给其他子服
    "OnlySideServer": true
  },
  "System": {
    "IP": "127.0.0.1",
    "Port": 25555,
    "AutoConnectTime": 10,
    "Debug": false
  },
  "User": {
    //不发送玩家的指令到群中
    "NotSendCommand": true
  },
  "Logs": {
    "Group": true,
    "Server": true
  },
  "Placeholder": {
    "Message": "%message%",
    "Player": "%player%",
    "ServerName": "%servername%",
    "Server": "%server%",
    "PlayerNumber": "%playernumber%",
    "PlayerList": "%playerlist%"
  },
  "Language": {
    "MessageOFF": "§2你已不会在收到群消息",
    "MessageON": "§2你开始接受群消息"
  },
  "Mute": [],
  "Version": "3.0.4"
}

minecraft_qq's People

Contributors

coloryr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

minecraft_qq's Issues

当玩家在游戏中发送的消息包括'\'字符时报错

[14:35:17 ERROR]: Could not pass event AsyncPlayerChatEvent to Minecraft_QQ v2.5.3.0
java.lang.IllegalArgumentException: character to be escaped is missing
        at java.util.regex.Matcher.appendReplacement(Matcher.java:809) ~[?:1.8.0_242]
        at java.util.regex.Matcher.replaceAll(Matcher.java:955) ~[?:1.8.0_242]
        at java.lang.String.replaceAll(String.java:2223) ~[?:1.8.0_242]
        at Color_yr.Minecraft_QQ.Listener.BukkitEvent.onPlayerSay(BukkitEvent.java:66) ~[?:?]
        at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor279.execute(Unknown Source) ~[?:?]
        at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.15.2.jar:git-Paper-385]
        at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76) ~[patched_1.15.2.jar:git-Paper-385]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.15.2.jar:git-Paper-385]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:607) ~[patched_1.15.2.jar:git-Paper-385]
        at net.minecraft.server.v1_15_R1.PlayerConnection.chat(PlayerConnection.java:1782) ~[patched_1.15.2.jar:git-Paper-385]
        at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1697) ~[patched_1.15.2.jar:git-Paper-385]
        at net.minecraft.server.v1_15_R1.PacketPlayInChat$1.run(PacketPlayInChat.java:41) ~[patched_1.15.2.jar:git-Paper-385]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_242]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_242]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_242]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_242]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]

转义符bug((

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.