- Used By
- Kill Awards
Dancing NPC
Rotating Gear
Gamemode FFA
Gamemode Core
Boxed Player Spawn
Gamemode Gun Game
Gamemode Battle Royale
This plugin serves as an API for use by other plugins, providing hooks to create and equip gear sets.
Permissions
gearcore.use
- Allows to save, equip, and delete gear sets.
Commands
/gear save <name>
- Saves the current inventory as a gear set with the given name./gear equip <name>
- Equips the specified gear set, replacing the current inventory with the saved items./gear delete <name>
- Deletes the specified gear set from the stored data./gear list
- Lists all available gear sets.
Stored Data
JSON:
{
"Gear Sets": {
"RifleSet": {
"Main": [
{
"Short Name": "rifle.ak",
"Amount": 1,
"Skin Id": 0,
"Name": null,
"Condition": 100.0,
"Position": 0,
"Ammunition": {
"Short Name": "ammo.rifle",
"Amount": 30
},
"Attachments": [
{
"Short Name": "weapon.mod.scope",
"Amount": 1
},
{
"Short Name": "weapon.mod.silencer",
"Amount": 1
}
]
}
],
"Wear": [
{
"Short Name": "hoodie",
"Amount": 1,
"Skin Id": 0,
"Name": null,
"Condition": 100.0,
"Position": 1
},
{
"Short Name": "pants",
"Amount": 1,
"Skin Id": 0,
"Name": null,
"Condition": 100.0,
"Position": 2
}
],
"Belt": [
{
"Short Name": "medical.syringe",
"Amount": 2,
"Skin Id": 0,
"Name": null,
"Condition": 100.0,
"Position": 0
}
]
}
}
}
Localization
JSON:
{
"NoPermission": "You don't have permission to use this command.",
"InvalidCommand": "Invalid command. Correct usage:\n- <color=#F0E68C>/gear save <name></color> - Saves your inventory as a gear set.\n- <color=#F0E68C>/gear equip <name></color> - Equips the specified gear set.\n- <color=#F0E68C>/gear delete <name></color> - Deletes the specified gear set.\n- <color=#F0E68C>/gear list</color> - Lists all available gear sets.",
"UsageSaveGear": "Invalid command. Correct usage:\n- <color=#F0E68C>/gear save <name></color> - Saves your inventory as a gear set.",
"UsageEquipGear": "Invalid command. Correct usage:\n- <color=#F0E68C>/gear equip <name></color> - Equips the specified gear set.",
"UsageDeleteGear": "Invalid command. Correct usage:\n- <color=#F0E68C>/gear delete <name></color> - Deletes the specified gear set.",
"GearEquipped": "You have equipped the gear set <color=#F0E68C>{0}</color>.",
"GearSetNotFound": "Gear set <color=#F0E68C>{0}</color> does not exist.",
"GearUpdated": "Gear set <color=#F0E68C>{0}</color> updated successfully.",
"GearSaved": "Gear set <color=#F0E68C>{0}</color> created and saved successfully.",
"GearDeleted": "Gear set <color=#F0E68C>{0}</color> deleted successfully.",
"NoGearSetsAvailable": "No gear sets available.",
"AvailableGearSets": "Available gear sets:\n{0}"
}
Developers Hooks
C#:
bool EquipGearSet(BasePlayer player, string gearSetName, bool clearCurrentInventory = true)
- Equips a gear set to a player by its name.
- Returns
true
if the gear set is equipped successfully,false
if the gear set is not found.
C#:
bool GearSetExists(string gearSetName)
- Checks if a gear set with the specified name exists.
- Returns
true
if the gear set is found,false
if it does not exist.