forked from Upstream/CommandPanels
3.8.1 Tweaks
This commit is contained in:
parent
86838e36bd
commit
84d195c45e
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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){
|
||||||
|
Loading…
Reference in New Issue
Block a user