mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Achievements API
This commit is contained in:
parent
ae8c934b5f
commit
3ff4b9eae0
5 changed files with 180 additions and 8 deletions
|
|
@ -150,7 +150,7 @@ class Config{
|
|||
}
|
||||
}
|
||||
|
||||
public function __get($k){
|
||||
public function &__get($k){
|
||||
return $this->get($k);
|
||||
}
|
||||
|
||||
|
|
@ -166,11 +166,11 @@ class Config{
|
|||
return $this->remove($k);
|
||||
}
|
||||
|
||||
public function get($k){
|
||||
public function &get($k){
|
||||
if($this->correct === false or !isset($this->config[$k])){
|
||||
return false;
|
||||
}
|
||||
return ($this->config[$k]);
|
||||
return $this->config[$k];
|
||||
}
|
||||
|
||||
public function set($k, $v = true){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue