From 09ddccb46faa7f069cd66ccac6ddf9c43fdfd153 Mon Sep 17 00:00:00 2001 From: Andre | xZeroMCPE Date: Fri, 12 Aug 2016 01:43:59 -0400 Subject: [PATCH 1/3] Tuned some stuff! --- src/Andre/SurvivalGames/Main.php | 34 +++++++++++++++++++------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/src/Andre/SurvivalGames/Main.php b/src/Andre/SurvivalGames/Main.php index 6031971..a3f2961 100644 --- a/src/Andre/SurvivalGames/Main.php +++ b/src/Andre/SurvivalGames/Main.php @@ -37,7 +37,7 @@ class Main extends PluginBase implements Listener { public $data; - + public $version = "1.0.10" private static $object = null; public static function getInstance(){ @@ -170,13 +170,20 @@ public function onEnable() { $this->SetStatus=array(); $this->all=0; $this->config->save(); - $this->getServer()->getLogger()->info(TextFormat::YELLOW."------------------------------"); - $this->getServer()->getLogger()->info(TextFormat::RED."SurvivalGames has been §eenabled"); - $this->getServer()->getLogger()->info(TextFormat::RED."Config: §eLoaded !"); - $this->getServer()->getLogger()->info(TextFormat::RED."Developer: §exZeroMCPE §e@xZeroMCPE"); - $this->getServer()->getLogger()->info(TextFormat::YELLOW."------------------------------"); - - + $version = $this->version; + $this->getServer()->getLogger()->info("§b + * + * + * _____ _ _ _____ + / ____| (_) | |/ ____| + | (___ _ _ _ ____ _____ ____ _| | | __ __ _ _ __ ___ ___ ___ + \___ \| | | | '__\ \ / / \ \ / / _` | | | |_ |/ _` | '_ ` _ \ / _ \/ __| + ____) | |_| | | \ V /| |\ V / (_| | | |__| | (_| | | | | | | __/\__ \ + |_____/ \__,_|_| \_/ |_| \_/ \__,_|_|\_____|\__,_|_| |_| |_|\___||___/ + * + * §cGitHub:§e GitHub.com/xZeroMCPE/SurvivalGames + * §cUsing version: $version +"); } @@ -261,7 +268,7 @@ public function onCommand(CommandSender $sender, Command $command, $label, array $sender->sendMessage("$No_Permission"); return true; } }else{ - $sender->sendMessage(TextFormat::RED . "§d§oPlease use the command in game!!"); + $sender->sendMessage(TextFormat::RED . "That command can only be used in-game!"); return true; } break; @@ -269,7 +276,7 @@ public function onCommand(CommandSender $sender, Command $command, $label, array if($sender instanceof Player){ if($this->config->exists("lastpos")) { - $sender->sendMessage("§cAn arena has already been setup, remove the existing one first"); + $sender->sendMessage("TextFormat::BLUE . "Seems like you have already setup an arena"); } else { @@ -385,7 +392,7 @@ public function onCommand(CommandSender $sender, Command $command, $label, array { $this->config->set("prefix","Game"); } - $this->gameTime=(int)$this->config->get("gameTime");//how long a match is + $this->gameTime=(int)$this->config->get("gameTime"); $this->prefix=(int)$this->config->get("prefix"); $this->gameStatus=0;//status of the game (sign) $this->lastTime=0;//just a variable :P @@ -393,7 +400,7 @@ public function onCommand(CommandSender $sender, Command $command, $label, array $this->SetStatus=array(); $this->all=0;// $this->config->save(); - $sender->sendMessage(TextFormat::GREEN. "SurvivalGamess config has been reloaded"); + $sender->sendMessage(TextFormat::GREEN. "All SurvivalGames configuration has been reloaded"); break; default: return false; @@ -1188,10 +1195,9 @@ public function PlayerQuit(PlayerQuitEvent $event){ } public function onDisable(){ - $this->getServer()->getLogger()->info(TextFormat::GREEN."[SG] Saving All Data..."); $this->saveResource("config.yml"); $this->saveResource("points.yml");; - $this->getServer()->getLogger()->info(TextFormat::GREEN."[SG] All files was saved"); + $this->getServer()->getLogger()->info(TextFormat::GREEN."All configuration has been saved!"); } } ?> From fe80bc46f50f290407c390606c0daf1d196f9717 Mon Sep 17 00:00:00 2001 From: Andre | xZeroMCPE Date: Fri, 12 Aug 2016 01:50:38 -0400 Subject: [PATCH 2/3] The more the "better" --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 37deec4..9b7204f 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ This is not just another SurvivalGame plugin. This plugin aims to bring a fully - Easy arena setup - Per Arena Permissions - Lightning and thunder on player deaths (Simulate cannons) - - Multiworld Support + - MultiWorld Support + - MultiLanguage Suppoer - Events API - Economy, Kits + More! Plus many, many more features included in this plugin! + +Language +-------- + +SurvivalGames gives server owners a chance to use any language as possible. If you are wanting to help us you may create any languages file that does not exist and create a "Pull Request" and we"ll sure merge it. We are trying to make SurvivalGames support as much language as posibble. The more the "better". From 5bbde2a18158355efc21f59d7cc94ade708b883a Mon Sep 17 00:00:00 2001 From: Andre | xZeroMCPE Date: Fri, 12 Aug 2016 01:54:21 -0400 Subject: [PATCH 3/3] Fixed mistakes --- src/Andre/SurvivalGames/Main.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Andre/SurvivalGames/Main.php b/src/Andre/SurvivalGames/Main.php index a3f2961..e451533 100644 --- a/src/Andre/SurvivalGames/Main.php +++ b/src/Andre/SurvivalGames/Main.php @@ -321,7 +321,7 @@ public function onCommand(CommandSender $sender, Command $command, $label, array $sender->sendMessage(TextFormat::GREEN . "Game settings successfully removed."); break; case "start": - Server::getInstance()->broadcastMessage(TextFormat::BLUE. "$Force_Start"); + $this->getServer()->broadcastMessage(TextFormat::BLUE. "$Force_Start"); $this->gameStatus=1; $this->lastTime=5; break; @@ -394,9 +394,9 @@ public function onCommand(CommandSender $sender, Command $command, $label, array } $this->gameTime=(int)$this->config->get("gameTime"); $this->prefix=(int)$this->config->get("prefix"); - $this->gameStatus=0;//status of the game (sign) - $this->lastTime=0;//just a variable :P - $this->players=array();//players + $this->gameStatus=0; + $this->lastTime=0; + $this->players=array(); $this->SetStatus=array(); $this->all=0;// $this->config->save(); @@ -1127,7 +1127,7 @@ public function playerBlockTouch(PlayerInteractEvent $event){ }else{ if(!$event->getPlayer()->hasPermission("sg.touch.startgame")) { - $event->getPlayer()->sendMessage("You don't have permission to join this game."); + $event->getPlayer()->sendMessage("You don't have permission to do that!\nContact the server administration"); }else{ if($this->gameStatus==0 || $this->gameStatus==1) @@ -1158,7 +1158,7 @@ public function playerBlockTouch(PlayerInteractEvent $event){ } else { - $event->getPlayer()->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] Please leave server, to quit match!"); + $event->getPlayer()->sendMessage(TextFormat::RED. "[{$this->getConfig()->get("prefix")}] You are already in an arena"); } } else