CraftConomy


http://dev.bukkit.org/bukkit-plugins/craftconomy/pages/main/

経済の概念を取り入れる。
アルバイト代を払うことも、直接売買することもできます。

コマンド
コマンド 解説
/money お財布を確認
/money top 富豪ランキングを確認する
/money pay 相手のプレイヤーID 金額  相手にお金を支払う
/money help ヘルプを確認

管理コマンド
コマンド 解説
/money give プレイヤーID 金額 増額する
/money take プレイヤーID 金額 消費する
/money set プレイヤーID 金額 その金額に残高を訂正する
/money create プレイヤーID お財布をつくる



サーバー主向け導入方法

MySQLを導入された方向けに解説します。
このプラグインは自動セットアップ形式です。
対応するregion、endregionプラグインが不足しています。対になるようプラグインを配置してください。

1.コマンド /ccsetup とコマンドを入力すると以下の文字がでる。

実行結果
Welcome to the CraftConomy 3 Setup Wizard!
I will help you configure Craftconomy like you want!
First, I need to know wat kind of database you want to use. If you want a
flatfile database, I recommendid SQLite.
Please type/ccsetup database <sqlite/mysql/h2>

2.MySQLを使用するので /ccsetup database mysql と入力する。

実行結果
You selected MySQL. Please type/ccsetup database address <Your host>

3./ccsetup database address <Your host>とあるので <Your host>にMySQLのホスト名を入力する localhost など。

実行結果
Alright! Please type/ccsetup database port <Your port> to set your MySQL
port (Usually 3306)

4./ccsetup database port <Your port>とあるのでMySQLのポート番号を入れるデフォルトは3306番です。

実行結果
Saved! Please type /ccsetup database username <Username> to set your MySQL
username

5.同じように/ccsetup database username <Username>とあるのでユーザーネームを入れる root など。

実行結果
Saved! Please type /ccsetup database password <Password> to set your MySQL
password(enter "" for none)

6.同じように/ccsetup database password <Password>とでるのでMySQLデーターベースのパスワードを入力する。

実行結果
Saved! Please type /ccsetup database db <Database Name> to set your MySQL
database.

7./ccsetup database db <Database Name> とあるので<Database Name>にデータベース名を入力する。Craftconomyなど

実行結果
Saved! Please type /ccsetup database prefix <Prefix> to set your table
If not sure, put cc3_).

8./ccsetup database prefix <Prefix>とあるが、<Prefix>にはcc3_といれればよい。

実行結果
Done! Please Wait while the database is initializing.
Awesome! Now, I want to know if you want to comvert from Craftconomy V2?
Please type /ccsetup currency cc2 yes or /ccsetup currency cc2 no

9./ccsetup currency cc2 noと入力する。

実行結果
Alright! Welcome to Craftconomy! We use a Multi-Currency system. I need you
to write the settings for the default currency.
First, let's configure the main currency name (EX;Dollar). Type /ccsetup
currency name <Name>

10.currencyとあるが、通貨の意味です。円などを入力すると円になります。ここでは<Name>には円をいれていきます。

/ccsetup currency name 円と入力します。$でも構いません。
実行結果
Now, let's configure the currency name but in Plural (EX;Dollars).
type/ccset currency name plural <Plural>

11.<Plural>には複数形のお金の単位を入れます。円の場合は複数形はないので円でOKです。

/ccsetup currency nameplural 円と実行します。
実行結果
Now, let's configure the currency name but for the minor (EX;Coin).
type/ccset currency minor <Minor>

12.Minorには円より小さい単位などを入れます。しかしここではあえて円でいきます。

Now, let's configure the currency name but for the minor in plural (EX;Coins).
type/ccset currency minorplural <Minor plural>

13.<Minor plural>には先ほどいれた複数形の単位をいれます。円には複数形はないので円にします。

/ccsetup currency minorplural 円
Finally, let's put asignon that currency(EX;$).Please type/ccsetup
currency sign <Sign>

14.<Sign>には通貨の文字を入れます例えば円ならば¥の大文字をいれるとOKです。

We are done for that step! Only 2 reaming! Please type/ccsetup basic

15./ccsetup basicと入力

how much money you want your players to have initally? Please type
/ccsetup basic <amount>

16.<amount>には初期の持ち金額を入力します。

How much you want your player to pay for a bankaccount{{? Please type
/ccsetup basic <amount>

17.<ammount>に銀行の初期金額を入力します。


Long: 40 Dollars 1 Coin
Small: 40.1 Dollars
Sign: $40.1
MajorOnly: 40 Dollars
Please type /ccsetup basic <format>

18.<format>にはLong、Small、Sign、MajorOnlyのいずれかを入力します。

Longは1円と1銭みたいな表現の時に使います。
Smallは1.1円みたいな表現の時に使います。
Signは¥50.1のような表現の時に使います。
MajorOnlyは50 円と表示したいときに使います。
円は小数点は不要なのでここではMajorOnlyを選択します。
/ccsetup basic MajorOnlyと入力

実行結果
Only 1 step left! Do you want to convert from another system? Type
/ccsetup convert yes to /ccsetup convert no

19.ここで/ccsetup convert noと入れればセットアップ終了です。前にiconomyやBosEconomyを使っていた方は以下参照

前に使っていた通貨のプラグインがある方は記録していたファイルをplugins/craftconomy内に配置する。
データベースの場合は配置せずデータベースのURLが必要です。
引き継ぐ場合/ccsetup convert yesと入力

サポートされているプラグインは以下です
iConomy6 Essentials BosEconomy craftconomy2

20./ccsetup convert <各プラグイン名を入力>

入力後、/ccsetup convert <filename, filename> <value>
と言われるがチョットわかりづらいので例をあげます。

BoseEconomy 例:/ccsetup convert filename accounts.txt
iconomy 例: accounts.sqlなど accounts.mini

筆者の知識ではこの二つしか扱ったことがないので他は省きます。

filename のあとに前に使っていたアカウントが保存されているファイル名を指定する。
注意点として、BoseEconomyは銀行名が日本語などがふくまれたファイルは変換できない為、
銀行をあらかじめ削除しておくほうがいいです。
最終更新:2014年09月17日 16:33