mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-01 02:16:15 -04:00
More work on vendors
This commit is contained in:
@@ -142,9 +142,11 @@ public class BazaarService implements INetworkDispatch {
|
||||
SWGObject terminal = core.objectService.getObject(terminalId);
|
||||
if(terminal == null)
|
||||
return;
|
||||
int permission = 2;
|
||||
if(terminal.getAttachment("isVendor") != null && (Boolean) terminal.getAttachment("isVendor"))
|
||||
permission = (long) terminal.getAttachment("vendorOwner") == player.getObjectID() ? 0 : 1;
|
||||
Point3D pos = terminal.getWorldPosition();
|
||||
session.write(new IsVendorOwnerResponseMessage(2, 0, terminalId, getVendorUID((TangibleObject) terminal)).serialize());
|
||||
|
||||
session.write(new IsVendorOwnerResponseMessage(permission, 0, terminalId, getVendorUID((TangibleObject) terminal)).serialize());
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user