Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
fix issue #1
Browse files Browse the repository at this point in the history
it seems to be Guilded can't parse the 3 '*' characters to a message format. But actually it shouldn't do this
  • Loading branch information
MCUmbrella committed Sep 18, 2021
1 parent 5a692cb commit bf92b65
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>vip.floatationdevice</groupId>
<artifactId>mc2gforward</artifactId>
<version>1.0-SNAPSHOT2</version>
<version>1.0-SNAPSHOT3</version>
<packaging>jar</packaging>

<name>MC2GForward</name>
Expand Down
14 changes: 10 additions & 4 deletions src/main/java/vip/floatationdevice/mc2gforward/MC2GForward.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,16 @@ public void onEnable()
Bukkit.getPluginManager().disablePlugin(this);
return;
}
getLogger().info("Connecting to Guilded server");
/*
TODO:
add a command (like '/mc2g bind <verification code>') on MC side and Guilded side
to verify Guilded users' MC player name. once a Guilded account has been bound to
a Minecraft player, he/she will have ability to forward messages to Minecraft side
*/
//getLogger().info("Connecting to Guilded server");
g4JClient=new G4JClient(token);
g4JClient.connect();
sendGuildedMsg("*** MC2GForward started ***");
//g4JClient.connect();
sendGuildedMsg("--- MC2GForward started ---");
}catch (Throwable e)
{
getLogger().severe("Failed to initialize plugin!");
Expand All @@ -71,7 +77,7 @@ public void onDisable()
{
if(g4JClient!=null)
{
String result=g4JClient.createChannelMessage(channel,"*** MC2GForward stopped ***");
String result=g4JClient.createChannelMessage(channel,"--- MC2GForward stopped ---");
//g4JClient.close();
g4JClient=null;
if(debug)getLogger().info("\n"+new JSONObject(result).toStringPretty());
Expand Down

0 comments on commit bf92b65

Please sign in to comment.