Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MinecrafterJPN committed Jun 19, 2014
1 parent 1280805 commit 90a970a
Showing 1 changed file with 1 addition and 44 deletions.
45 changes: 1 addition & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,50 +41,7 @@ You can change the value of default money by rewriting system.yml

# For developers

You can "set" money of selected player or non-player account by coding as follow.

```php

$accountName : string or Player object
$amount : integer

PocketMoney::setMoney($accountName, $amount);
```

----

You can "grant" money to selected player or non-player account by coding as follow.

```php

$accountName : string or Player object
$amount : integer

PocketMoney::grantMoney($accountName, $amount);
```

----

You can get money of selected player or non-player account by coding as follow.

```php

$accountName : string or Player object

PocketMoney::getMoney($accountName);
```

----

You can open non-player account by coding as follow.

```php

$accountName : string or Player object
$hide : boolean, optional parameter (default = false)

PocketMoney::createAccount($accountName, $hide = false);
```
See src/PocketMoney/PocketMoneyAPI.php



Expand Down

0 comments on commit 90a970a

Please sign in to comment.