Skip to content

Commit

Permalink
Merge pull request #3 from Alw3ys/irgendwr-patch-1
Browse files Browse the repository at this point in the history
Prevent invalid simbols
  • Loading branch information
Alw3ys authored Mar 27, 2017
2 parents fe3cf03 + ad67835 commit e7c9e24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bukkit/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.alw3ys</groupId>
<artifactId>SinusForMinecraft</artifactId>
<version>1.0-SNAPSHOT</version>
<version>1.1-SNAPSHOT</version>
<name>SinusForMinecraft</name>
<description>Connect Sinusbot with a BungeeCord or Bukkit Server</description>

Expand Down
8 changes: 6 additions & 2 deletions sinusbot/SinusForMinecraft.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ registerPlugin({
var conn = net.connect({ host: '127.0.0.1', port: 1234 }, function(err) {
if (err) engine.log(err);
});
if (conn) conn.write('{"title":"' + trackEvent.title() + '", "artist":"' + trackEvent.artist() + '", "duration":' + trackEvent.duration() + '}');

if (conn) {
var trackInfo = { title:trackEvent.title(), artist:trackEvent.artist(), duration:trackEvent.duration() };
conn.write(JSON.stringify(trackInfo));
}
});
});
});

0 comments on commit e7c9e24

Please sign in to comment.