# Ist das Plugin geladen?

Beispiel um zu überprüfen innerhalb der new\_game() Funktion ob das WarriorLib Plugin vom Spieler installiert ist

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

So ermittelt ihr die aktuelle Version der WarriorsLib (erst verfügbar ab V1.3):

```lua
function new_game()
	if WarriorsLib then
		if WarriorsLib.VERSION then
			dbg.stm("WarriorsLib has been found in V".WarriorsLib.VERSION)
		else
			dbg.stm("WarriorsLib has been found - your Version is old, please consider to update your Plugin")
		end
	else
		dbg.stm("WarriorsLib is not installed")
	end
end
```

`WarriorsLib.VERSION` - Gibt die aktuelle vollständige Version an (Beispiel: 1.5.0)\
`WarriorsLib.MAJOR_VERSION` - Gibt die aktuelle Hauptversion an (Beispiel: 1)\
`WarriorsLib.MINOR_VERSION` - Gibt die aktuelle Nebenversion an (Beispiel: 5)\
`WarriorsLib.AUTHOR` - Gibt die aktuellen Author(en) an


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.settlers-united.com/s4-warriorslib-de/tutorials/ist-das-plugin-geladen.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
