Skip to content

Commit

Permalink
Removed the bugged method
Browse files Browse the repository at this point in the history
the getWorldGamemode() function was the root of most of the problems.
  • Loading branch information
Exxarion committed Jan 31, 2016
1 parent b0c23bb commit 3502eae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/WorldGM/Utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@

class Utilities {

public static function getWorldGamemode(Config $config, $world) {
return $config->get(WorldGM::CONFIG_WORLDS)[$world];
}
//UNUSED
/*public static function getWorldGamemode(Config $config, $world) {
return $config->get(WorldGM::CONFIG_WORLDS, $world);
}*/

public static function setWorldGamemode(Config $config, $world, $gamemode) {
$worlds = $config->get(WorldGM::CONFIG_WORLDS);
Expand Down

0 comments on commit 3502eae

Please sign in to comment.