This plugin is mainly for testing or role play. Put clothes on your NPC to make it look nice or armor on your NPC to test damage from different weapons.
Features
- Spawn player NPCs.
- Access your NPC inventory and give it armor.
- Kill your NPC from any where on the map.
- Teleport to your NPC position.
- Recall your NPC to your position.
- Check NPC status.
- Heal your NPC.
Override Behaviors
- Only the owner of the spawned NPC will be able to damage it.
- NPC will spawn in the direction you are facing.
Permissions
mynpc.use- Allows players to use the npc commands.mynpc.bypasscooldown- Allows players to bypass npc cooldown timers.mynpc.multiplenpc- Allows players to spawn multiple NPC's (partially implemented)
Caveats
For admins using mynpc.multiplenpc feature.The goto, recall, heal, and kill features will only effect a single NPC. There is no option at this time to choose which NPC you want those features to have an effect on.
Chat Commands
/npc.add- Spawn an NPC./npc.inv- Access your NPC's inventory (You need to be looking at your NPC)/npc.kill- Remove your NPC./npc.heal- Heal your NPC to 100%./npc.recall- Recall your NPC to your position./npc.goto- Teleport to your NPC's position/npc.status- Check the status of your NPC (state, health and location)/npc.helpor/npc- Open the NPC help menu./npc.list- Check the count and ownership of player spawned NPCs on the map. (Admin only)
Default Configuration
Adjust the cooldown in seconds for the recall command.
{
"Cooldown": 10
}
Localization
{
"Help": "<size=18><color=#ffc34d>MyNPC</color></size>\n<color=#9999ff>/npc.add</color> to spawn your NPC.\n<color=#9999ff>/npc.recall</color> to recall your NPC.\n<color=#9999ff>/npc.goto</color> teleport to your NPC.\n<color=#9999ff>/npc.kill</color> to kill your NPC.\n<color=#9999ff>/npc.heal</color> to heal your NPC.\n<color=#9999ff>/npc.inv</color> to access your NPC's inventory.\n<color=#9999ff>/npc.status</color> to check the status of your NPC.",
"AdminHelp": "<size=18><color=#ffc34d>MyNPC</color></size>\n<color=#9999ff>/npc.add</color> to spawn your NPC.\n<color=#9999ff>/npc.recall</color> to recall your NPC.\n<color=#9999ff>/npc.goto</color> teleport to your NPC.\n<color=#9999ff>/npc.kill</color> to kill your NPC.\n<color=#9999ff>/npc.heal</color> to heal your NPC.\n<color=#9999ff>/npc.inv</color> to access your NPC's inventory.\n<color=#9999ff>/npc.status</color> to check the status of your NPC.\n\n<color=#ff6666>(Admin only)</color>\n<color=#9999ff>/npc.list</color> get the count and ownership of NPCs on the map.",
"Spawned": "<color=#ffc34d>MyNPC</color>: You have spawned an NPC.",
"Healed": "<color=#ffc34d>MyNPC</color>: You NPC has been healed to <color=#b0fa66>100%</color>",
"Check": "<color=#ffc34d>MyNPC</color>: You NPC is <color=#b0fa66>alive</color> with <color=#b0fa66>{0}</color> health at location X:<color=#ffc34d>{1}</color> Y:<color=#ffc34d>{2}</color> Z:<color=#ffc34d>{3}</color>",
"NPCRecall": "<color=#ffc34d>MyNPC</color>: You have recalled your NPC.",
"GoTo": "<color=#ffc34d>MyNPC</color>: You have teleported to your NPC.",
"Console": "<color=#ffc34d>MyNPC</color>: Check your <color=#ffc34d>console</color> for the results.",
"Killed": "<color=#ffc34d>MyNPC</color>: Your NPC has been killed.",
"NoNPC": "<color=#ffc34d>MyNPC</color>: You don't have an NPC out.",
"NotFound": "<color=#ffc34d>MyNPC</color>: No owned NPCs found.",
"Exists": "<color=#ffc34d>MyNPC</color>: You already have an NPC out.",
"CantDamage": "<color=#ffc34d>MyNPC</color>: You cannot damage an NPC that you don't own.",
"Permission": "<color=#ffc34d>MyNPC</color>: You don't have an NPC out.",
"BuildingBlocked": "<color=#ffc34d>MyNPC</color>: Can't spawn/recall/goto an NPC while building blocked.",
"Mounted": "<color=#ffc34d>MyNPC</color>: Can't spawn/recall/goto an NPC while mounted.",
"WaterBad": "<color=#ffc34d>MyNPC</color>: NPCs can't swim.",
"Flying": "<color=#ffc34d>MyNPC</color>: Can't spawn/recall/goto while jumping, flying, or falling",
"Cooldown": "<color=#ffc34d>MyNPC</color>: You are on a {0} second cooldown.",
"NoNPCOnMap": "<color=#ffc34d>MyNPC</color>: There are no player spawned NPCs on the map."
}
Credits
Thank you Ryz0r for the plugin assistance.
Support
- Need help? Visit our Dark Side Development Discord
- All plugins available at Dark Side Development
- Like what I do? Your support is greatly appreciated. Check out my Ko-Fi
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

