Skip to content

Commit

Permalink
rearranged code
Browse files Browse the repository at this point in the history
  • Loading branch information
mastercake10 committed May 21, 2018
1 parent c421d11 commit 74520b2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>TelegramChat</groupId>
<artifactId>TelegramChat</artifactId>
<version>1.0.12</version>
<version>1.0.14</version>
<name>TelegramChat</name>
<url>https://www.spigotmc.org/resources/telegramchat.16576/</url>
<repositories>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/de/Linus122/TelegramChat/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void onEnable() {
Bukkit.getPluginCommand("telegram").setExecutor(new TelegramCmd());
Bukkit.getPluginCommand("linktelegram").setExecutor(new LinkTelegramCmd());
Bukkit.getPluginManager().registerEvents(this, this);

File dir = new File("plugins/TelegramChat/");
dir.mkdir();
data = new Data();
Expand All @@ -61,7 +61,7 @@ public void onEnable() {
e.printStackTrace();
}
}

telegramHook = new Telegram();
telegramHook.auth(data.getToken());

Expand Down Expand Up @@ -192,7 +192,7 @@ public void onQuit(PlayerQuitEvent e) {
public void onChat(AsyncPlayerChatEvent e) {
if (!this.getConfig().getBoolean("enable-chatmessages"))
return;
if(e.isCancelled())
if (e.isCancelled())
return;
if (telegramHook.connected) {
ChatMessageToTelegram chat = new ChatMessageToTelegram();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

import java.util.UUID;

public class ChatMessageToMc extends Cancellable{
public class ChatMessageToMc extends Cancellable {
UUID uuid_sender;
String content;
int chatID_sender;
public ChatMessageToMc(UUID uuid_sender, String content, int chatID_sender){

public ChatMessageToMc(UUID uuid_sender, String content, int chatID_sender) {
this.uuid_sender = uuid_sender;
this.content = content;
this.chatID_sender = chatID_sender;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package de.Linus122.TelegramComponents;

public class ChatMessageToTelegram extends Cancellable{
public class ChatMessageToTelegram extends Cancellable {
public String text;
public int chat_id;
public String parse_mode;
Expand Down

0 comments on commit 74520b2

Please sign in to comment.