CHStargate
Adds functions and events for the Stargate plugin. This should only be used if you are already using the Stargate plugin.
Compatibility and Downloads
CHStargate 3.1.1 for CommandHelper 3.3.5 and Stargate 0.8.0.x
CHStargate 3.1.0 for CommandHelper 3.3.4 and Stargate 0.8.0.x
CHStargate 2.0.0 for CommandHelper 3.3.2 and Stargate 0.7.9.11
Functions
boolean sg_set_owner(portalName, portalNetwork, owner)
Sets the portal's owner.
string sg_get_owner_name(portalName, portalNetwork)
Returns the portal's owner name.
string sg_get_owner_uuid(portalName, portalNetwork)
Returns the portal's owner UUID.
boolean sg_is_portal_open(portalName, portalNetwork)
Returns whether the given portal is currently open.
array sg_get_portal_info(portalName, portalNetwork)
Gets an array of data about a specific Stargate portal.
Array keys are: button, sign, destination, frame, entrance, options, open, ownerUUID, ownerName.
Options array keys are: alwaysOn, backwards, free, hidden, noNetwork, private, random, show.
Events
stargate_access
Fired when a player interacts with a Stargate. Result determines access.
Prefilters:
deny(boolean) Whether access was denied or not.
Event Data:
playerThe player requesting access.portalThe Stargate portal's name.networkThe Stargate network this portal belongs to.
stargate_destroy
Fired when a block of a Stargate portal is broken.
Prefilters:
deny(boolean) Whether access was denied or not.
Event Data:
playerThe player that broke the block.portalThe Stargate portal's name.networkThe Stargate network this portal belongs to.
stargate_open
Fired when a Stargate portal is opened.
Event Data:
playerThe player opening the portal, if one.portalThe Stargate portal's name.networkThe Stargate network this portal belongs to.
stargate_portal
Fired when a Stargate portal is traversed.
Event Data:
playerThe player traveling.portalThe Stargate portal's name.networkThe Stargate network this portal belongs to.exitThe exit location.exitportalThe name of portal at the exit.
Mutable Fields:
exitA different exit location.
Last Successful Artifacts
|
