My Nickname [MYNICK]
Minecraft Players have 2 names to be used in game (name + displayname). This script is a workaround the displayname.
The nickname (aka displayname) is saved in file and reloaded when necessary; as normally it resets on the player quit.
Commandes
- display actual displayname:
- change player displayname:
- /mynickname_set <new_nickname>
- display minecraft &colorcodes:
Permissions
nick.use to allow the command.
A cooldown is set for the use of the command
/mynickname.
Permission
nick.nocool to bypass it.
Installation
- unzip
- edit or not the CONFIGURATION VARIABLES (see below)
- place all the files in pyspigot scripts/
- copy/paste the permissions in script_options.yml
- load with pyspigot reload mynickname.py or restart server
PERMISSION FILE
(copy/paste in PySpigot/script_options.yml)
Code (Text):
mynickname.py
enabled: true
permissions:
nick.*:
description: allow myckname use, cooldown is by default
children:
nick.use: false
nick.nocool: false
CONFIGURATION VARIABLES
Code (Text):
COOLDOWN_SECONDS = 600
NICKNAME_MAX_LENGTH = 16
USE_PERMISSIONS = True
MYNICKNAME_CHAT_PREFIX = "&3[MyNickname]&r "
MYNICKNAME_DATA_FILEPATH = 'plugins/PySpigot/scripts/mynickname.json'
---
![[IMG]](//proxy.spigotmc.org/51654597805812fe921ddbc44543eee9fffab24c/68747470733a2f2f692e6962622e636f2f396b4d6d334379472f6d796e69636b6e616d652d312e6a7067)