|
|
@@ -5,8 +5,10 @@ define([ |
|
|
|
) { |
|
|
|
return { |
|
|
|
accounts: { |
|
|
|
admin: { |
|
|
|
waffle: { |
|
|
|
level: 10, |
|
|
|
messageStyle: 'color-cyan', |
|
|
|
messagePrefix: '(dev) ', |
|
|
|
items: [{ |
|
|
|
type: 'key', |
|
|
|
name: 'Key to the world', |
|
|
@@ -55,6 +57,16 @@ define([ |
|
|
|
return success; |
|
|
|
}, |
|
|
|
|
|
|
|
getRoleMessageStyle: function(player) { |
|
|
|
var account = player.account; |
|
|
|
return this.accounts[account] ? this.accounts[account].messageStyle : null; |
|
|
|
}, |
|
|
|
|
|
|
|
getRoleMessagePrefix: function(player) { |
|
|
|
var account = player.account; |
|
|
|
return this.accounts[account] ? this.accounts[account].messagePrefix : null; |
|
|
|
}, |
|
|
|
|
|
|
|
sendMessage: function(player, msg) { |
|
|
|
msg = 'Only certain roles can ' + msg + ' at the moment'; |
|
|
|
|
|
|
|