Moved colorification of expired messages
This commit is contained in:
parent
cbb2429d52
commit
83f735c74d
@ -13,7 +13,7 @@ public abstract class ClickCallback {
|
|||||||
public ClickCallback(boolean repeatable, boolean async, String expiredMessage) {
|
public ClickCallback(boolean repeatable, boolean async, String expiredMessage) {
|
||||||
this.repeatable = repeatable;
|
this.repeatable = repeatable;
|
||||||
this.async = async;
|
this.async = async;
|
||||||
this.expiredMessage = ChatAPI.colorify(null, expiredMessage);
|
this.expiredMessage = expiredMessage;
|
||||||
this.expired = false;
|
this.expired = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ public abstract class ClickCallback {
|
|||||||
run(sender);
|
run(sender);
|
||||||
}else{
|
}else{
|
||||||
if (sender != null) {
|
if (sender != null) {
|
||||||
sender.sendMessage(expiredMessage);
|
sender.sendMessage(ChatAPI.colorify(null, expiredMessage));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!repeatable) {
|
if (!repeatable) {
|
||||||
|
Reference in New Issue
Block a user