Added settings.query-plugins setting

This commit is contained in:
Shoghi Cervantes 2014-07-10 17:24:12 +02:00
parent 7dd4a843c6
commit 1fab6bd589
2 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class QueryHandler{
$str = ""; $str = "";
$plist = "PocketMine-MP " . $this->server->getPocketMineVersion(); $plist = "PocketMine-MP " . $this->server->getPocketMineVersion();
$pl = $this->server->getPluginManager()->getPlugins(); $pl = $this->server->getPluginManager()->getPlugins();
if(count($pl) > 0){ if(count($pl) > 0 and $this->server->getProperty("settings.query-plugins", true) === true){
$plist .= ":"; $plist .= ":";
foreach($pl as $p){ foreach($pl as $p){
$d = $p->getDescription(); $d = $p->getDescription();

View File

@ -4,6 +4,8 @@
settings: settings:
shutdown-message: "Server closed" shutdown-message: "Server closed"
plugin-profiling: false
query-plugins: true
advanced-cache: false advanced-cache: false
upnp-forwarding: false upnp-forwarding: false
send-usage: true send-usage: true