Plugin MineCraft : CommandBook
From Verywiki-EN
Contents |
[Bukkit] CommandBook
- Current version of autoplugin : 1.4.2
- Compatible Craftbukkit : 709+
Function
- General commands as used on my server since '10. Warping, item giving, time changing, weather changing -- the usual.
- Supports [Bukkit] Permissions plugin.
- Supports [Bukkit] WorldGuard plugin.
Configuration
You can configure the file config.yml (/plugins/CommandBook/)
online-on-join
- true : see the list of players currently logged on the server
- false : you can not see the list of players that are connected on the server
motd
- Message of the day
rules
- Server rule that players must follow
Available colors
| Color code | Color on white | Color on black |
|---|---|---|
| `r | red | red |
`R
| dark red | dark red |
| `y | yellow | yellow |
| `Y | dark yellow (gold) | dark yellow (gold) |
| `g | green | green |
| `G | dark green | dark green |
| `c | cyan/aqua | cyan/aqua |
| `C | dark cyan/aqua | dark cyan/aqua |
| `b | blue | blue |
| `B | dark blue | dark blue |
| `p | purple/pink | purple/pink |
| `P | dark purple | dark purple |
| `0 | black | black |
| `1 | dark grey | dark grey |
| `2 | light grey | light grey |
| `w | white | white |
Configure the Permissions of the plugin
Il est nécessaire d'ajouter les permissions que vous souhaitez aux groupes que vous souhaitez pour chaque commande.
These permissions must be included in your configuration file plugin Permissions.
Usage
General
| Command | Permissions | Arguments | Description |
|---|---|---|---|
| /cmdbook version | None | See the current version of CommandBook. | |
| /cmdbook reload |
| Reload the configuration of the plugin. | |
| /item /i |
| [-d] <item[:data]> [amount] | Gives you an item (-d to drop items). |
| /give |
| [-d] <target> <item[:data]> [amount] | Give items to any player(-d to delete an item). |
| /who /list /playerlist /online /players |
| [filter] | See who is online. |
| /motd |
| Show the message of the day. | |
| /rules |
| Show the rules. | |
| /kit |
| Get a list of "kits" that a player can use. | |
| /kit |
| <kit> [target] | Get a kit. |
| /more |
| [-a] [-i] [target] | Changes the held stack to have 64 items.
|
| /setspawn |
| [destination] | Set the spawn location. |
| /time | (Not applicable) | Get the current time. | |
| /time now | (Not applicable) | Get the current time. | |
| /time -l now |
| Lock the time to the current time. | |
| /time |
| [-l] [world] <time> | Set the time. The time can be a number to indicate the number of ticks, names of the times of the day (sunrise, dusk, dawn, sunset, etc.), or a time string (3:44 or 5:44pm or 12am).
|
| /spawnmob |
| [-d] [-i] [-r] [-p] <mob> [count] [destination] | Spawn a mob or several. The mob name can be a partial match. You can enter an invalid mob name and you will be listed the available types.
|
| /weather |
| <'stormy'|'sunny'> [duration] [world] | Change the weather. Use -1 for a duration (optional) if you want it to be natural, or you can specify a duration in seconds. Weather is global (on over the entire world) and it snows in snowy biomes and rains in other biomes. |
| /thunder |
| <'on'|'off'> [duration] [world] | Change the thunder and lightning state. Use -1 for a duration (optional) if you want it to be natural, or you can specify a duration in seconds. Thunder won't work when it's not storming. |
Téléportation
| Command | Permissions | Arguments | Description |
|---|---|---|---|
| /spawn |
| Vous téléporte au point de départ (spawn) | |
| /teleport /tp |
| [target] <destination> | Vous téléporte vers une destination. |
| /bring /tphere /summon /s |
| <target> | Téléporter un autre joueur vers vous. |
| /place /put |
| <target> | Téléporter un autre joueur vers la location que vous cherchez à atteindre. |
Messages
| Command | Permissions | Arguments | Description |
|---|---|---|---|
| /say |
| <message...> | Envoyer un message. |
| /me |
| <message...> | Envoyer un message à la 3ème personne en parlant de soi. |
| /msg /message /whisper /pm /tell |
| <target> <message...> | Envoyer un message à un autre joueur en privé. |
| /reply /r |
| <message...> | Répondre à la dernière personne qui vous a envoyée un message privé. |
Players
| Command | Permissions | Arguments | Description |
|---|---|---|---|
| /whereami /getpos /pos /where |
| [target] | Avoir votre location actuelle. |
| /compass |
| [target] | Avoir votre position actuelle en coordonnée (x, y et z). |
| /clear |
| [-a] [target] | Vider votre inventaire ou celui de d'un autre joueur. Utiliser l'option -a pour vider tout les slots (armure, etc...). |
| /slap |
| [-h|-v] [-d] [-s] [target] | Gifler un joueur.
|
| /rocket |
| [-h] [-s] [target] | Faire exploser un joueur.
|
| /barrage |
| [-s] [target] | Envoi un barrage de flèche vers un joueur.
|
Tools
| Command | Permissions | Arguments | Description |
|---|---|---|---|
| /ping | Renvoi la réponse "Pong" pour savoir si le serveur répond toujours. | ||
| /whois |
| <target> | Avoir des informations à propos d'un joueur. |
| /debug info |
| Avoir les informations du serveur. | |
| /debug clock |
| Génère un test de mesure sur le serveur afin de détecter des problèmes de latence. |
Ban
| Command | Permissions | Arguments | Description |
|---|---|---|---|
| /kick |
| <target> [reason...] | Kick un joueur. |
| /ban |
| [-e] <name> [reason...] | Expulse définitivement un joueur.
|
| /unban |
| <name> [reason...] | Débannir un joueur.
|
| /isbanned |
| <name> | Vérifier si ce joueur est banni.
|
| /bans load |
| Lit la liste des bannis depuis le disque. | |
| /bans save |
| Force la sauvegarde de la liste des bannis sur le disque. |
Directed targets
The private message commands take a directed target.
-
!or#consolematches the console -
@<player>matches a player exactly by their name -
<filter>matches everyone whose name starts with the specified filter (will only work if there's only one match) -
*<filter>matches everyone whose name contains the specified filter (will only work if there's only one match)
Targets
With most commands, a target can include an entire group of people. You can use a number of targets, including some special ones:
-
@<player>matches a player exactly by their name -
*matches everyone -
#worldmatches everyone in the same world as you -
#nearmatches everyone within 30 blocks radius of you -
<filter>matches everyone whose name starts with the specified filter -
*<filter>matches everyone whose name contains the specified filter
Locations
The teleport commands let you specify a location. You can use the following.
-
<x>,<y>,<z>matches coordinates (requires the commandbook.locations.coords permission) -
#spawnmatches spawn (requires the commandbook.spawn permission) -
#targetmatches the first free block in the column of the block that you are looking at - Anything else matches the location of the first target found
Worlds
Some commands let you specify a world.
-
#mainmatches the main world -
#normalmatches the first normal world -
#nethermatches the first Nether world -
#player:<filter>matches the world of the first player target found -
<filter>matches a world by the exact name
Times
For the time command, you have several choices of specifying the time. Some example possibilities are as follows:
- 12:00 (24-hour time)
- 4pm (12-hour time)
- 5:22am (12-hour time)
- Dawn
- Sunrise
- Morning
- Day
- Midday
- Noon
- Afternoon
- Evening
- Sunset
- Dusk
- Night
- Midnight
- 12144 (number of ticks, a number between 0 and 24000)
