• The GUI system has been changed fixing and optimizing code
• The system that the plugin uses to save data has been changed
• The system that imports items from the configuration has been changed.
Before:
Later:
• If you are a developer and you would like to use ChatColor in your plugin you can use the following methods
Code (Java):
Pattern pattern
= PatternLoader.
getPatternByName
(
"rainbow"
)
;
List
<Pattern
> patterns
= PatternLoader.
getAllPatterns
(
)
;
String patternName
= pattern.
getName
(
false
)
;
String patternNameFormatted
= pattern.
getName
(
true
)
;
String textFromPattern
= pattern.
getText
(
"My colored text :D!"
)
;
CPlayer cplayer
= CPlayer
(player
)
;
cplayer.
setPattern
(pattern
)
;
Pattern playerPattern
= cplayer.
getPattern
(
)
;
cplayer.
disablePattern
(
)
;
//Returns if the player has permission to use the pattern (if the pattern has a permission)
boolean canUse
= cplayer.
canUsePattern
(pattern
)