Skip to content
This repository has been archived by the owner on Mar 12, 2018. It is now read-only.

Commit

Permalink
Fixed genisys getServerName issue and minor bug fixes in setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Sep 26, 2016
1 parent f381723 commit fbe8c96
Show file tree
Hide file tree
Showing 34 changed files with 15 additions and 2 deletions.
Empty file modified LICENSE.txt
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Binary file removed glifcos-plugin/Glifcos_v2.0.0-b1.phar
Binary file not shown.
Binary file added glifcos-plugin/Glifcos_v2.0.0-b2.phar
Binary file not shown.
2 changes: 1 addition & 1 deletion glifcos-plugin/plugin.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Glifcos
main: Glifcos\Glifcos
version: 2.0.0-b1
version: 2.0.0-b2
api: 2.0.0
author: HotFireyDeath/Chopstick Software

Expand Down
6 changes: 5 additions & 1 deletion glifcos-plugin/src/Glifcos/Glifcos.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public function onEnable(){
}
if (is_file($this->getDataFolder()."/data.txt")){
$this->webserver = base64_decode(file_get_contents($this->getDataFolder()."/data.txt"));
$this->getLogger()->info(TextFormat::GREEN."Glifcos webserver located.");
}
else{
$this->getLogger()->info(TextFormat::YELLOW."Glifcos setup not complete. Please complete your setup or else some services will fail.");
}
$this->filemgr_currentpath = "/";
$this->pingGlifcos();
Expand All @@ -54,7 +58,7 @@ public function pingGlifcos(){
"version" => $this->getServer()->getPocketMineVersion(),
"codename" => $this->getServer()->getCodename(),
"maxplayers" => $this->getServer()->getMaxPlayers(),
"name" => $this->getServer()->getServerName(),
"name" => "Minecraft PE Server",
"motd" => $this->getServer()->getMotd()
));
}
Expand Down
Empty file modified glifcos-plugin/src/Glifcos/tasks/AsyncDataSender.php
100644 → 100755
Empty file.
Empty file modified glifcos-plugin/src/Glifcos/tasks/ConsoleBroadcastTask.php
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions glifcos-plugin/src/Glifcos/tasks/ConsoleCommandTask.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ public function __construct($plugin){
}
public function onRun($ticks){
// manipulate webserver to get the command data file.
if (empty($this->plugin->webserver)){
return;
}
$webserver = str_replace("server.php", "database/commands.txt", $this->plugin->webserver);
$content = file_get_contents($webserver);
if (empty($content)){
return;
}
$content = base64_decode($content);
$content = json_decode($content);
foreach($content as $command){
Expand Down
3 changes: 3 additions & 0 deletions glifcos-plugin/src/Glifcos/tasks/FileBroadcastTask.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public function __construct($plugin){
parent::__construct($plugin);
}
public function onRun($ticks){
if (empty($this->plugin->webserver)){
return;
}
$this->plugin->filemgr_currentpath = base64_decode(file_get_contents(str_replace("server.php", "database/FILE_POINTER_PATH.txt", $this->plugin->webserver)));
if (is_file($this->plugin->getServer()->getDataPath().$this->plugin->filemgr_currentpath)){
$this->plugin->sendData(array(
Expand Down
Empty file modified glifcos-plugin/src/Glifcos/tasks/PlayerBroadcastTask.php
100644 → 100755
Empty file.
Empty file modified glifcos-plugin/src/Glifcos/tasks/PluginBroadcastTask.php
100644 → 100755
Empty file.
Empty file modified glifcos-plugin/src/Glifcos/tasks/RamBroadcastTask.php
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/assets/bootstrap/css/bootstrap-theme.css
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/assets/bootstrap/css/bootstrap-theme.css.map
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/assets/bootstrap/css/bootstrap-theme.min.css
100644 → 100755
Empty file.
Empty file.
Empty file modified glifcos-webserver/assets/bootstrap/css/bootstrap.css
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/assets/bootstrap/css/bootstrap.css.map
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/assets/bootstrap/css/bootstrap.min.css
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/assets/bootstrap/css/bootstrap.min.css.map
100644 → 100755
Empty file.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Empty file.
Empty file.
Empty file modified glifcos-webserver/assets/bootstrap/js/bootstrap.js
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/assets/bootstrap/js/bootstrap.min.js
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/assets/bootstrap/js/npm.js
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/assets/jquery/jquery.js
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/assets/jstorage/jstorage.js
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/index.html
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/main.html
100644 → 100755
Empty file.
Empty file modified glifcos-webserver/server.php
100644 → 100755
Empty file.

0 comments on commit fbe8c96

Please sign in to comment.