Hi
First thx for adding this new event!
Now i try to use but i hit some issue. For persistent item placement it work as expected, but it is a issue when try to add items on a metabject (furnace, grill). For example when i want to put ore in furnace, ore gone from inventory but on furnace don't appear nothing and i can put in same slot over and over new ore. If i don't use at all new event i can put items in metaobjects! it's like, with new event activated is canceled by default when put items in metaobjects!
For testing purpose i use following code:
Java
print("Player %s place a item %s into %s located at coordinate %.2f %.2f %.2f",p.getName(),item.getName(),def.name,pos.x,pos.y,pos.z);
print("Player %s place a persistent item %s at coordinates %.2f %.2f %.2f",p.getName(),item.getName(),pos.x,pos.y,pos.z);
if (item.isPersistent()) { // type==WorldItemType.PersistentDynamic || type==WorldItemType.PersistentStatic
print(" Try to pickup a permanent item placed! Check permission and deny if not a friend with building right!");
print(" Try to pickup a item from a craft station! Check permission and deny if not a owner or friend with inventory right!");
// here cancel event if player don't have right to pickup items from crafting stations (furnace,grill,etc.)
From logs:
Code
[Java] Player Bamse place a item ironore into furnace located at coordinate 1699.72 94.30 1788.76 <--- Here i placed a ore in furnace, but in furnace appear nothing
[Java] Player Bamse picked a WorldItem ironore of type MetaObject <--- here i take a ore from furnace
[Java] Try to pickup a item from a craft station! Check permission and deny if not a owner or friend with inventory right!
SERVER: PLAYER Bamse (76561198869958751) PLACED ITEM steakburned @ (1698.98, 93.82, 1784.41) <--- Here i placed a persistent item
[Java] Player Bamse picked a WorldItem steakburned of type PersistentStatic <--- Here i pickup a persistent item
[Java] Try to pickup a permanent item placed! Check permission and deny if not a friend with building right!
Thx
Bamse