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: config:
refresh-panels: true refresh-panels: true
panel-blocks: true panel-blocks: true
refresh-delay: '4' refresh-delay: 4
server-ping-timeout: 10
stop-sound: true stop-sound: true
disabled-world-message: true disabled-world-message: true
update-notifications: true update-notifications: true

View File

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

View File

@ -812,7 +812,7 @@ public class commandpanels extends JavaPlugin {
String ip_port = str.substring(start, end).replace("%cp-server-", "").replace("%",""); String ip_port = str.substring(start, end).replace("%cp-server-", "").replace("%","");
Socket s = new Socket(); Socket s = new Socket();
try { 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")); str = str.replace(str.substring(start, end) + "%", papi(p, "true"));
s.close(); s.close();
}catch (IOException ex){ }catch (IOException ex){