Dantiao Plugin
  • Content
  • 0 - Basic INFO
  • 1 - All commands
  • 2 - Arena(Basic Function)
  • 3 - Lobby
  • 4 - Fighting!
  • 5 - Dan
  • 6 - Ranking
  • 7 - PointShop
  • 8 - Energy
  • 9 - Arena(Senior Function)
  • 10 - Languages file
  • 11 - MySQL
  • 12 - PAPI
  • 13 - API
Powered by GitBook
On this page
  • Introduction
  • Change my language environment
  • Change the default language environment for your server
  • Custom a language file
  • Add custom symbols

Was this helpful?

10 - Languages file

Introduction of languages file

Introduction

I have make some preset languages files in the jar.To be sure,you can make a new one.

Language file name

Language

en

English

zh_CN

Simplified Chinese

zh_TW

Traditional Chinese

Change my language environment

Type /dt changelang <Languge file name> to change my environment,such as /dt changelang zh_CN

Type /dt changelang to view all the language files reloaded in the server

Change the default language environment for your server

In the config.yml:

Lang: en

Custom a language file

You can also custom a new language file

Create a new txt in plugins/Dantiao/Languages and name it xxx.txt.Then enter the message in it.What you should pay attention to is that the mssages' order should be the same as the DefaultLanguages.txt's

Add custom symbols

In the symbols.yml you can add a mark to replace a symbol to make your editing language file convinent

For example,I want to replace "✔" with "[v]"

'[v]': "\u2714"
Previous9 - Arena(Senior Function)Next11 - MySQL

Last updated 3 years ago

Was this helpful?