3.8.1 Tweaks

This commit is contained in:
rockyhawk64 2020-08-09 23:23:54 +10:00
parent 86838e36bd
commit 84d195c45e
3 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,8 @@
config:
refresh-panels: true
panel-blocks: true
refresh-delay: '4'
refresh-delay: 4
server-ping-timeout: 10
stop-sound: true
disabled-world-message: true
update-notifications: true

View File

@ -1,4 +1,4 @@
version: 3.8.0
version: 3.8.1
main: me.rockyhawk.commandPanels.commandpanels
name: CommandPanels
author: RockyHawk

View File

@ -812,7 +812,7 @@ public class commandpanels extends JavaPlugin {
String ip_port = str.substring(start, end).replace("%cp-server-", "").replace("%","");
Socket s = new Socket();
try {
s.connect(new InetSocketAddress(ip_port.split(":")[0], Integer.parseInt(ip_port.split(":")[1])), 10);
s.connect(new InetSocketAddress(ip_port.split(":")[0], Integer.parseInt(ip_port.split(":")[1])), config.getInt("config.server-ping-timeout"));
str = str.replace(str.substring(start, end) + "%", papi(p, "true"));
s.close();
}catch (IOException ex){