Administrator may create a new cdkey via the the plugin, with which rewards gold or items when the cdkey is actived by players.
Config | Description |
user: 'root' | your sql username |
password: 'toor' | your sql password |
table: 'cdkey' | which table in your schemas save the cdkey data |
Permission | Description |
cdk.activeCDKEY | Can active a cdkey |
cdk.createCDKEY | Can create a cdkey |
cdk.reload | Can reload plugin |
cdk.updateCDKEY | Can update a cdkey |
cdk.deleteCDKEY | Can delete a cdkey |
Command | Argument | Description |
cdkey reload | | Reload config file and re-connect to database |
cdkey active | [CDKEY] | Active a cdkey ,gain money and items. |
cdkey delete | [CDKEY] | Delete a cdkey |
cdkey create/cdkey update | [CDKEY] [Valid] [Max] [Value] [LimitUsers] [Gold] [Items] | Create or update a CDKEY |
Argument | Description |
CDKEY | Which cdkey you want to alter |
Valid | A value of CDKEY to flag it is or not a valid cdkey 1-is a valid CDKEY, 0-not a valid CDKEY |
Max | How many players can active this CDKEY |
Value | How much players actived this CDKEY |
LimitUsers | Limit one or more player can't active this CDKEY e.g.: player1;player2;player3....;playerN |
Gold | How many money should give to player |
Items | Items give to player e.g.: 264:1;265:1;266:1 ( give a diamod ,a gold ,a iron to player) |
P.S.: if you want give money to player ,you must install Vault plugin
P.S: if you want create table you want, sql code here:
create table [yourTableName] (
ikey varchar(100) not null primary key ,
valid int(1) not null ,
max int(11) not null ,
value int(11),
users varchar(512),
gold int(11),
item varchar(100))
Posts Quoted:
Reply
Clear All Quotes
话说你可以做成一次生成N个点卡 一个点卡只能使用一次的么?
@Adrain6
accept! Add run commands next version
Nice!
Can you add the possibility to run commands when you use a key?