Converted all old docs to new one

This commit is contained in:
Stijn Bannink 2025-01-10 19:36:30 +01:00
parent 5f6132988e
commit 9f9d8f83fa
Signed by: SBDeveloper
GPG key ID: B730712F2C3A9D7A
25 changed files with 816 additions and 5 deletions

9
actionfoto/about.md Normal file
View file

@ -0,0 +1,9 @@
---
sidebar_label: About
sidebar_position: 1
---
# About
ActionFoto is a plugin that allows you to create theme park style action photos. It is a great way to add some fun to
your server and give your players a way to remember their time on your server.

20
actionfoto/faq.md Normal file
View file

@ -0,0 +1,20 @@
---
sidebar_label: FAQ
sidebar_position: 4
---
# FAQ
## Images aren't send to the panel. How to fix?
First check if you don't get any errors. If not, make sure the name of the ActionFoto board is also the name of a
ThemePark ride.
If you get an error, please check below.
### I get an `PacketTooBigException`:
The error looks like
this: `com.mysql.jdbc.PacketTooBigException: Packet for query is too large. You can change this value on the server by setting the max_allowed_packet' variable.`
As you can see, you have to change the max_allowed_packet setting. Open the `my.cnf` file and
change `max_allowed_packet` from 32M to 256M. This will allow us to send bigger images.

12
actionfoto/setup.md Normal file
View file

@ -0,0 +1,12 @@
---
sidebar_label: Setup
sidebar_position: 2
---
# Setup
1. Make sure you have installed [MapReflectionAPI](https://polymart.org/resource/mapreflectionapi-1-12-1-19.2576)
and [ProtocolLib](https://www.spigotmc.org/resources/protocollib.1997/) in your server. These are required for
ActionFoto.
2. Download the [plugin from Polymart](https://polymart.org/resource/actionfoto.2245). Then just install it into your
plugins folder. The plugin will start up and function out of the box.

77
actionfoto/usage.md Normal file
View file

@ -0,0 +1,77 @@
---
sidebar_label: Usage
sidebar_position: 2
---
# Usage
## Commands:
- `/af info` - Information about the plugin
- `/af help` - Get list of commands
- `/af reload` - reload the plugin
- `/af create <name>` - Create an itemframe section.
- `/af addframes <name>` - Add one/more frame(s) to an itemframe section
- `/af take <name> <player>` - Take a picture of an/multiple user(s) and add it to the next available itemframe in an
itemframe section. The player can be either a name or a radius (r=5). You can't use the Minecraft selectors!
- `/af give [user] <imageuser>` - Give a User a picture of the ImageUser.
- `/af reset <name> <framenumber/all>` - Reset one/all itemframes
- `/af remove <name>` - Remove an itemframe section.
## Permissions:
- `af.admin` - The general admin permission
- `af.give` - The give command permission
## Signs:
ActionFoto contains a Traincarts sign.
```
[train]
actionfoto
<name>
```
## Layer system:
The existing layers are: `BACKGROUND` (full size image), `PLAYERSKIN` (replaces `%UUID%` by the player UUID), `IMAGE` (a
normal image), `TEXT` (just text, use `%PLAYERNAME%` for the name of the player).
See the examples below:
```yml
#Background layer:
'1':
Type: BACKGROUND
Value: https://sbdplugins.nl/images/random.png
#Playerskin layer:
'2':
Type: PLAYERSKIN
Value: https://sbdplugins.nl/images/player3d.png?uuid=%UUID%
X: 40 #X position, from top left
Y: 40 #Y position, from top left
#Image player
'3':
Type: IMAGE
Value: https://sbdplugins.nl/images/random.png
X: 30 #X position, from top left
Y: 20 #Y position, from top left
Width: 60 #Width (pixels)
Height: 40 #Height (pixels)
#Text layer
'4':
Type: TEXT
Value: 'Hello!'
X: 20 #X position, from top left
Y: 30 #Y position, from top left
#Font is optional!
Font:
Name: Tahoma #The font name (must be supported by java)
Type: 0 #The font type (see below)
Size: 8.0 #Font size (pixels)
```
You can find a list
of [available fonts here](https://alvinalexander.com/blog/post/jfc-swing/swing-faq-list-fonts-current-platform/). The
types are: 0 (Plain), 1 (Bold) and 2 (Italic).