Paste #22469: Money Item Script Handler

Date: 2015/11/11 17:01:32 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20


kitem_test:
  type: item
  material: i@stone
  display name: <server.flag[int_test]>
  lore:
  - greetings from BloodEko

inv_kitem_test:
  type: inventory
  inventory: chest
  size: 9
  slots:
  - "[] [] [] [] [i@kitem_test] [] [] [] []"

kitem_handler:
  type: world
  events:
    on kitem command:
    - flag server "int_test:Your money<&co> <player.money> Coins"
    - inventory open d:in@inv_kitem_test