Skip to content

Commit

Permalink
Release 1.0.2
Browse files Browse the repository at this point in the history
适配MiraiMC 1.4
close #3
  • Loading branch information
DreamVoid committed Sep 11, 2021
1 parent 9983af6 commit f260878
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.dreamvoid</groupId>
<artifactId>Link2QQ</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -54,7 +54,7 @@
<groupId>io.github.dreamvoid</groupId>
<artifactId>MiraiMC</artifactId>
<!--请确保版本为Github上的最新版本-->
<version>1.3</version>
<version>1.4</version>
<scope>provided</scope>
</dependency>
<!-- BungeeCord API -->
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/me/dreamvoid/link2qq/bukkit/BukkitPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void onFriendMessageReceive(MiraiFriendMessageEvent e){
new BukkitRunnable() {
@Override
public void run() {
String[] args = e.getMessage().split(" ");
String[] args = e.getMessageToMiraiCode().split(" ");
if(args[0].equals(Config.Bot_AddBindCommand)){
if(args.length >= 2){
Utils.qqBind.remove(e.getSenderID());
Expand Down Expand Up @@ -86,7 +86,7 @@ public void onGroupMessageReceive(MiraiGroupMessageEvent e){
new BukkitRunnable() {
@Override
public void run() {
String[] args = e.getMessage().split(" ");
String[] args = e.getMessageToMiraiCode().split(" ");
if(args[0].equals(Config.Bot_AddBindCommand)){
if(args.length >= 2){
Utils.qqBind.remove(e.getSenderID());
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/me/dreamvoid/link2qq/bungee/BungeePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void onDisable() {
public void onFriendMessageReceive(MiraiFriendMessageEvent e){
if(e.getBotID() == Config.Bot_Id){
getProxy().getScheduler().runAsync(this, () -> {
String[] args = e.getMessage().split(" ");
String[] args = e.getMessageToMiraiCode().split(" ");
if(args[0].equals(Config.Bot_AddBindCommand)){
if(args.length >= 2){
Utils.qqBind.remove(e.getSenderID());
Expand Down Expand Up @@ -70,7 +70,7 @@ public void onFriendMessageReceive(MiraiFriendMessageEvent e){
public void onGroupMessageReceive(MiraiGroupMessageEvent e){
if(e.getBotID() == Config.Bot_Id && e.getGroupID() == Config.Bot_Group){
getProxy().getScheduler().runAsync(this, () -> {
String[] args = e.getMessage().split(" ");
String[] args = e.getMessageToMiraiCode().split(" ");
if(args[0].equals(Config.Bot_AddBindCommand)){
if(args.length >= 2){
Utils.qqBind.remove(e.getSenderID());
Expand Down

0 comments on commit f260878

Please sign in to comment.