Coding help!

Status
This thread has been locked.

HuskyGG

Banned
Feedback score
3
Posts
79
Reactions
16
Resources
0
Hey so im new to coding but im stuck, how would i make ChatColor.ALLCOLORS
so i could do say &3 and i can put that in my code line:
Code:
Bukkit.createInventory(null, 56, "Select a player to freeze!");
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

HuskyGG

Banned
Feedback score
3
Posts
79
Reactions
16
Resources
0
Instead of putting this
Do this
Thanks, how would i be able to make that go for every time someone put that in a say a config?
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/huskygg-scam-report.282658/)

Oahu - Aidan

Developer
Supreme
Feedback score
13
Posts
144
Reactions
65
Resources
0
Thanks, how would i be able to make that go for every time someone put that in a say a config?
If you wanted to translate a message in a config you can do this

Code:
Bukkit.createInventory(null, 56, ChatColor.translateAlternateColorCodes('&', getConfig().getString("inv name"));

Config:
inv name: &3Select a player to freeze!
 

HuskyGG

Banned
Feedback score
3
Posts
79
Reactions
16
Resources
0
FINISHED
 
Last edited:
Banned forever. Reason: Scamming (https://builtbybit.com/threads/huskygg-scam-report.282658/)
Status
This thread has been locked.
Top