[WIP] Add on screen kick message expr#7658
Conversation
|
OMG I literally had this issue today and this PR was made like the second I found it. What are the odds. |
|
Annotations need proper skript version needs to be updated, hence the WIP |
|
This PR should target dev/feature, not master |
This comment was marked as resolved.
This comment was marked as resolved.
Any additions should use |
| @RequiredPlugins("xxx Paper 1.16.5+") | ||
| @Since("xxx 2.8.0") | ||
| @Events("Kick") | ||
| public class ExprKickMessage extends SimpleExpression<String> { |
There was a problem hiding this comment.
This class needs to follow the proper code conventions re: method order, using finals in parameters, annotation placement.
But more importantly, this should probably be part of ExprMessage itself.
There was a problem hiding this comment.
working on the method order;
I don't think it should be part of ExprMessage, its not really a message that appears in chat. The reason why I named it ExprKickMessage is because kick reason was already taken
There was a problem hiding this comment.
there's no ExprKickReason, though?
There was a problem hiding this comment.
... good point, but then the class name would be ExprKickReason while the actual pattern is kick message and I thought that was worse
There was a problem hiding this comment.
Why would the pattern stay as kick message? shouldn't it be kick reason too?
@Fusezion |
Hmm, alright. |
|
@sovdeeth If you have a class name recommendation let me know because its very ambiguous overall |
Absolutionism
left a comment
There was a problem hiding this comment.
I know Sovde already mentioned about the coding conventions, so I won't do anything related to that.
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
|
In my opinion, rather than creating another expression, this should probably just be merged in with: |
Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com>
Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com>
|
I'll leave this open for a bit just in case someone wants to pitch in. personally I don't care what the pattern is as long as its usable |
|
you can re-request me once requested changes are addressed |
|
few notes: I renamed file to |
…ge.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
…ge.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
* Initial Commit * Fix Elements * Fix Entity Spawning * Update EntityData.java * Skip `-` prefix variable names when saving. (Ephemeral variables) (#7495) * Skip minus sign names when saving. * Remove minus sign from tokens list instead. * move check to before serialization --------- Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> * [WIP] Add on screen kick message expr (#7658) * Add kick message expr * Add proper placeholder for version * Code clean up * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> * We only support 1.19.4+ * use deprecated api * resolve suggestions * mark method as nullable * remove minimessage entirely * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * shorter import * implement EventRestrictedSyntax * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> * apply changes * implement suggestions * Update src/main/java/ch/njol/skript/expressions/ExprOnScreenKickMessage.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprOnScreenKickMessage.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> * ExprTool - Cleanup & Additional Test (#7710) * ExprTool.java - add mainhand and offhand * ExprTool.sk - Add basic testing * ExprTool.sk - new line * Apply suggestions from code review Add initial suggestions Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> * ExprTool.java - Change toString to SSB * Remove support for only "offhand" and "mainhand" * Move patterns back into the method * Update src/main/java/ch/njol/skript/expressions/ExprTool.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> * Move equipment slot map to BukkitUtils * Requested changes * Update to a BiMap for equipmentslot * Update src/main/java/ch/njol/skript/bukkitutil/BukkitUtils.java Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> * Changes * Remove Feature Changes * Requested Changes * Update EntityUtils.java * Requested Changes --------- Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> Co-authored-by: Moderocky <admin@moderocky.com> Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> Co-authored-by: nopeless <38830903+nopeless@users.noreply.github.com> Co-authored-by: Fusezion <fusezionstream@gmail.com> Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
* Add kick message expr * Add proper placeholder for version * Code clean up * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> * We only support 1.19.4+ * use deprecated api * resolve suggestions * mark method as nullable * remove minimessage entirely * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * shorter import * implement EventRestrictedSyntax * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> * apply changes * implement suggestions * Update src/main/java/ch/njol/skript/expressions/ExprOnScreenKickMessage.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprOnScreenKickMessage.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com>
* Initial Commit * Fix Elements * Fix Entity Spawning * Update EntityData.java * Skip `-` prefix variable names when saving. (Ephemeral variables) (SkriptLang#7495) * Skip minus sign names when saving. * Remove minus sign from tokens list instead. * move check to before serialization --------- Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> * [WIP] Add on screen kick message expr (SkriptLang#7658) * Add kick message expr * Add proper placeholder for version * Code clean up * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> * We only support 1.19.4+ * use deprecated api * resolve suggestions * mark method as nullable * remove minimessage entirely * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> * shorter import * implement EventRestrictedSyntax * Update src/main/java/ch/njol/skript/expressions/ExprKickMessage.java Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> * apply changes * implement suggestions * Update src/main/java/ch/njol/skript/expressions/ExprOnScreenKickMessage.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> * Update src/main/java/ch/njol/skript/expressions/ExprOnScreenKickMessage.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> * ExprTool - Cleanup & Additional Test (SkriptLang#7710) * ExprTool.java - add mainhand and offhand * ExprTool.sk - Add basic testing * ExprTool.sk - new line * Apply suggestions from code review Add initial suggestions Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> * ExprTool.java - Change toString to SSB * Remove support for only "offhand" and "mainhand" * Move patterns back into the method * Update src/main/java/ch/njol/skript/expressions/ExprTool.java Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> * Move equipment slot map to BukkitUtils * Requested changes * Update to a BiMap for equipmentslot * Update src/main/java/ch/njol/skript/bukkitutil/BukkitUtils.java Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com> * Changes * Remove Feature Changes * Requested Changes * Update EntityUtils.java * Requested Changes --------- Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com> Co-authored-by: Moderocky <admin@moderocky.com> Co-authored-by: sovdee <10354869+sovdeeth@users.noreply.github.com> Co-authored-by: nopeless <38830903+nopeless@users.noreply.github.com> Co-authored-by: Fusezion <fusezionstream@gmail.com> Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
Description
Implement kick message getting and setting
Target Minecraft Versions: Not known yet
Related Issues:
https://discord.com/channels/135877399391764480/1332620961328926790