> For the complete documentation index, see [llms.txt](https://docs.settlers-united.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.settlers-united.com/s4-warriorslib-en/tutorials/is-the-plugin-loaded.md).

# Is the plugin loaded?

Example to check within new\_game() function of your mapscript if WarriorsLib is installed by the player

```lua
function new_game()
	if WarriorsLib then
		dbg.stm("WarriorsLib has been found")
	else
		dbg.stm("WarriorsLib is not installed")
	end
end
```
