Skip to content

Commit

Permalink
Update WorldManager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GamakCZ committed May 2, 2017
1 parent 33d9036 commit 10b4224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MultiWorld/WorldManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct($plugin) {
* @return bool
*/
public function worldExists($name) {
if(file_exists($this->plugin->getServer()->getDataPath().$name)) {
if(file_exists($this->plugin->getServer()->getDataPath()."worlds/".$name)) {
return true;
}
}
Expand Down

1 comment on commit 10b4224

@Awzaw
Copy link

@Awzaw Awzaw commented on 10b4224 May 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @CzechPMDevs,
I am sorry to inform you that your submitted release, "MultiWorld" (v1.1), for the project MultiWorld on 2017-05-02 19:54:42 has been rejected.

This is not how to rename a level:

public function rename($oldname, $newname, Player $player) {

Please resolve the above-listed issues and submit the updated plugin again.

Please sign in to comment.