From 33611b81c46086d1ac5bf8f7b9d82cb300572524 Mon Sep 17 00:00:00 2001 From: T0biii Date: Fri, 6 Jan 2017 17:49:43 +0100 Subject: [PATCH] Update to 5.0 --- plugin.yml | 2 +- src/me/t0biii/ts/Methods/Cache.java | 2 +- src/me/t0biii/ts/Methods/ConfigManager.java | 2 +- src/me/t0biii/ts/Methods/JsonMessage.java | 2 +- src/me/t0biii/ts/Methods/Messages.java | 2 +- src/me/t0biii/ts/Methods/SendHelp.java | 2 +- src/me/t0biii/ts/Methods/Updater.java | 2 +- src/me/t0biii/ts/TeamSpeak.java | 2 +- src/me/t0biii/ts/commands/Ts.java | 2 +- src/me/t0biii/ts/commands/TsTapCompleter.java | 2 +- src/me/t0biii/ts/listener/PlayerJoin.java | 2 +- src/plugin.yml | 2 +- target/classes/plugin.yml | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/plugin.yml b/plugin.yml index db590e9..4910e1b 100644 --- a/plugin.yml +++ b/plugin.yml @@ -4,9 +4,9 @@ version: 5.0 website: http://dev.bukkit.org/bukkit-plugins/teamspeak-ip/ description: Plugin zeigt dir die TeamspeakIP prefix: TeamSpeakIP +database: false main: me.t0biii.ts.TeamSpeak -database: false commands: ts: description: Shows the TS IP diff --git a/src/me/t0biii/ts/Methods/Cache.java b/src/me/t0biii/ts/Methods/Cache.java index 40d3574..d9be1d4 100644 --- a/src/me/t0biii/ts/Methods/Cache.java +++ b/src/me/t0biii/ts/Methods/Cache.java @@ -19,7 +19,7 @@ public Cache(TeamSpeak plugin) { this.plugin = plugin; } - + public void loadCache(TS3Api api){ File file = new File("plugins/TeamspeakIP/cache.yml"); YamlConfiguration cfg = YamlConfiguration.loadConfiguration(file); diff --git a/src/me/t0biii/ts/Methods/ConfigManager.java b/src/me/t0biii/ts/Methods/ConfigManager.java index 7ceac95..76abd6e 100644 --- a/src/me/t0biii/ts/Methods/ConfigManager.java +++ b/src/me/t0biii/ts/Methods/ConfigManager.java @@ -14,7 +14,7 @@ public ConfigManager(TeamSpeak plugin) /** * Conf set up */ - + public void loadConfig() { diff --git a/src/me/t0biii/ts/Methods/JsonMessage.java b/src/me/t0biii/ts/Methods/JsonMessage.java index af5b2bf..ea5280b 100644 --- a/src/me/t0biii/ts/Methods/JsonMessage.java +++ b/src/me/t0biii/ts/Methods/JsonMessage.java @@ -16,7 +16,7 @@ * */ -public class JsonMessage { +public class JsonMessage { private String msg; diff --git a/src/me/t0biii/ts/Methods/Messages.java b/src/me/t0biii/ts/Methods/Messages.java index e96e131..06cf58c 100644 --- a/src/me/t0biii/ts/Methods/Messages.java +++ b/src/me/t0biii/ts/Methods/Messages.java @@ -15,7 +15,7 @@ public class Messages { public Messages(TeamSpeak plugin) { this.plugin = plugin; - } + } public void loadMessages(){ File file = new File("plugins/TeamspeakIP/messages.yml"); diff --git a/src/me/t0biii/ts/Methods/SendHelp.java b/src/me/t0biii/ts/Methods/SendHelp.java index 88c5062..dc62d86 100644 --- a/src/me/t0biii/ts/Methods/SendHelp.java +++ b/src/me/t0biii/ts/Methods/SendHelp.java @@ -13,7 +13,7 @@ public class SendHelp { public void sendHelp(Player p){ if(p.hasPermission("ts.help") || p.isOp() ){ Ts.prefixsend(p); - p.sendMessage(""); + p.sendMessage(""); //p.sendMessage(ChatColor.YELLOW+"/ts" + ChatColor.GRAY +" | The TS IP appears"); { JsonMessage jm = new JsonMessage(); diff --git a/src/me/t0biii/ts/Methods/Updater.java b/src/me/t0biii/ts/Methods/Updater.java index 93ce70a..d98797a 100644 --- a/src/me/t0biii/ts/Methods/Updater.java +++ b/src/me/t0biii/ts/Methods/Updater.java @@ -29,7 +29,7 @@ *
* If you are unsure about these rules, please read the plugin submission guidelines: http://goo.gl/8iU5l * - * @author Gravity + * @author Gravity * @version 2.3 */ diff --git a/src/me/t0biii/ts/TeamSpeak.java b/src/me/t0biii/ts/TeamSpeak.java index f38a902..d396315 100644 --- a/src/me/t0biii/ts/TeamSpeak.java +++ b/src/me/t0biii/ts/TeamSpeak.java @@ -29,7 +29,7 @@ public class TeamSpeak extends JavaPlugin{ public String Prefix = "§8[§6TeamSpeakIP§8] §f"; private int uid = 70774; public Updater updater; - + public static TeamSpeak instance; public ConfigManager cm = new ConfigManager(this); diff --git a/src/me/t0biii/ts/commands/Ts.java b/src/me/t0biii/ts/commands/Ts.java index 5c60cdb..b3f3d95 100644 --- a/src/me/t0biii/ts/commands/Ts.java +++ b/src/me/t0biii/ts/commands/Ts.java @@ -25,7 +25,7 @@ public class Ts implements CommandExecutor{ @Override public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) - { + { if(pl.getConfig().getInt("ts3.port") == 9987){ tsip = pl.getConfig().getString("ts3.ip"); diff --git a/src/me/t0biii/ts/commands/TsTapCompleter.java b/src/me/t0biii/ts/commands/TsTapCompleter.java index bdcef06..7bc3fee 100644 --- a/src/me/t0biii/ts/commands/TsTapCompleter.java +++ b/src/me/t0biii/ts/commands/TsTapCompleter.java @@ -18,7 +18,7 @@ public class TsTapCompleter implements TabCompleter { public TsTapCompleter(TeamSpeak main){ this.plugin = main; } - + @Override public List onTabComplete(CommandSender sender, Command cmd, String label, String[] args) { diff --git a/src/me/t0biii/ts/listener/PlayerJoin.java b/src/me/t0biii/ts/listener/PlayerJoin.java index d20e73e..729fb2e 100644 --- a/src/me/t0biii/ts/listener/PlayerJoin.java +++ b/src/me/t0biii/ts/listener/PlayerJoin.java @@ -22,7 +22,7 @@ public class PlayerJoin implements Listener{ public PlayerJoin(TeamSpeak plugin) { this.plugin = plugin; } - + @EventHandler public void onJoin(PlayerJoinEvent e){ Player p = e.getPlayer(); diff --git a/src/plugin.yml b/src/plugin.yml index db590e9..4910e1b 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -4,9 +4,9 @@ version: 5.0 website: http://dev.bukkit.org/bukkit-plugins/teamspeak-ip/ description: Plugin zeigt dir die TeamspeakIP prefix: TeamSpeakIP +database: false main: me.t0biii.ts.TeamSpeak -database: false commands: ts: description: Shows the TS IP diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml index db590e9..4910e1b 100644 --- a/target/classes/plugin.yml +++ b/target/classes/plugin.yml @@ -4,9 +4,9 @@ version: 5.0 website: http://dev.bukkit.org/bukkit-plugins/teamspeak-ip/ description: Plugin zeigt dir die TeamspeakIP prefix: TeamSpeakIP +database: false main: me.t0biii.ts.TeamSpeak -database: false commands: ts: description: Shows the TS IP