fix spawn doc links and support entities autocomplete

master^2
BuildTools 6 years ago
parent 562499c79b
commit 4887fab4bf

File diff suppressed because it is too large Load Diff

@ -8,6 +8,9 @@ module.exports = function(entityType, location){
entityTypeFn = entities[entityType.toLowerCase()];
entityType = entityTypeFn();
}
if (typeof entityType === 'function'){
entityType = entityType();
}
var world = location.world;
if (__plugin.bukkit){
world.spawnEntity( location, entityType);

@ -15,8 +15,8 @@ Allows in-game operators to easily spawn creatures at current location.
This command supports TAB completion so to see a list of possible
entitities, type `/jsp spawn ' at the in-game command prompt, then
press TAB. Visit
<https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html> (CanaryMod)
or <http://docs.visualillusionsent.net/CanaryLib/1.0.0/net/canarymod/api/entity/EntityType.html> (Bukkit)
<https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html> (Bukkit/SpigotMC)
or <http://docs.visualillusionsent.net/CanaryLib/1.0.0/net/canarymod/api/entity/EntityType.html> (CanaryMod)
for a list of possible entities (creatures) which can be spawned.