Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 21, 2018 20:24:57 GMT
Hello, First of all let me tell you i'm a noob at java and i'm not advanced. I saw that TF has @mentions and i decided to do it myself. I remade it, but instead of needing to use username you can just type in the Username and it will tag that player, there is also a message saying that you were tagged and a sound plays. I added in also @admins and @everyone, i added permissions for the usage of @everyone. Also i added a command /ignoretags which will allow you to ignore the sound of the tagging, it will still say in chat that you have been tagged (I can change it if you want) and of course it has a permission which can be negated. Only thing i'm having problems with is the players name and the @everyone, @admins to be in color. I know that the TF devs can do much more and better. I thought i would ask if you wanted to try this out. I am not asking for any money or rank. I'm willing to give this for free to TF and the source code. Source code and the plugin isn't released but i can if you want to. Also please tell me if you want me to give the jar to you or just post it on spigotmc.org or on some other website. NOTE: This feature is in a plugin i have coded and if you want the plugin i will code it in another plugin by itself. And if so tell me if you want a special name for it or just whatever.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 21, 2018 20:30:01 GMT
Release the source code for us to help you
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 21, 2018 20:34:32 GMT
|
|
Darth
Veteran Member
Server Liaison
Posts: 2,534
| Likes: 1,826
|
Post by Darth on Jul 21, 2018 20:48:31 GMT
Release the entire project on GitHub, it's much more efficient.
|
|
StevenNL2000
Forum Admin
Posts: 6,415
| Likes: 6,936
IGN: StevenNL2000
Timezone: UTC+01:00
Member is Staff. Need immediate assistance? Send a PM
|
Post by StevenNL2000 on Jul 21, 2018 20:48:48 GMT
Everything in Java is case sensitive unless stated otherwise. Convert the message to lower case before performing checks on it, and don't use capitals in Strings unless they are shown to the user. You need to make sure that it works with TheSilentPro, thesilentpro, THESILENTPRO, <at>everyone, <at>Everyone, <at>EvErYoNe, <at>aDmInS, etc.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 21, 2018 20:55:35 GMT
Everything in Java is case sensitive unless stated otherwise. Convert the message to lower case before performing checks on it, and don't use capitals in Strings unless they are shown to the user. You need to make sure that it works with TheSilentPro, thesilentpro, THESILENTPRO, <at>everyone, <at>Everyone, <at>EvErYoNe, <at>aDmInS, etc. I can do this with @everyone and @admins, but if i do it with @thesilentpro and theres someone named @thesilentpro wouldnt that conflict? Another example: Apple ApPlE
|
|
untuned
Veteran Member
I untune the tunes.
Posts: 588
| Likes: 283
|
Post by untuned on Jul 21, 2018 21:12:50 GMT
Everything in Java is case sensitive unless stated otherwise. Convert the message to lower case before performing checks on it, and don't use capitals in Strings unless they are shown to the user. You need to make sure that it works with TheSilentPro, thesilentpro, THESILENTPRO, <at>everyone, <at>Everyone, <at>EvErYoNe, <at>aDmInS, etc. I can do this with @everyone and @admins, but if i do it with @thesilentpro and theres someone named @thesilentpro wouldnt that conflict? Another example: Apple ApPlE There can only be one person with a specific username on the server, which is not case sensitive. This is proven by the fact you can change the case of your name without having to change it officially through launcher file editing. EDIT: %appdata%/.minecraft/launcher_profiles.json "profiles": { "db8e5b84c67041f69a2b1ad9a8c7e104": { "displayName": "untuned" <-- Edit the capitalization only, for example: "unTUNEd" } }
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 21, 2018 21:34:18 GMT
I can do this with @everyone and @admins, but if i do it with @thesilentpro and theres someone named @thesilentpro wouldnt that conflict? Another example: Apple ApPlE There can only be one person with a specific username on the server, which is not case sensitive. This is proven by the fact you can change the case of your name without having to change it officially through launcher file editing. EDIT: %appdata%/.minecraft/launcher_profiles.json "profiles": { "db8e5b84c67041f69a2b1ad9a8c7e104": { "displayName": "untuned" <-- Edit the capitalization only, for example: "unTUNEd" } } So i was right?
|
|
|
Post by mychaeljkmax on Jul 21, 2018 21:45:30 GMT
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 21, 2018 22:31:23 GMT
I see im not ready to be a tf dev tho. Im just asking if u would like the plugin.
|
|
|
Post by mychaeljkmax on Jul 21, 2018 22:32:30 GMT
I see im not ready to be a tf dev tho. Im just asking if u would like the plugin. I know you weren’t directly requesting to be a dev. I was just pointing that out for the future if you ever might be interested.
|
|
StevenNL2000
Forum Admin
Posts: 6,415
| Likes: 6,936
IGN: StevenNL2000
Timezone: UTC+01:00
Member is Staff. Need immediate assistance? Send a PM
|
Post by StevenNL2000 on Jul 21, 2018 22:59:47 GMT
Everything in Java is case sensitive unless stated otherwise. Convert the message to lower case before performing checks on it, and don't use capitals in Strings unless they are shown to the user. You need to make sure that it works with TheSilentPro, thesilentpro, THESILENTPRO, <at>everyone, <at>Everyone, <at>EvErYoNe, <at>aDmInS, etc. I can do this with @everyone and @admins, but if i do it with @thesilentpro and theres someone named @thesilentpro wouldnt that conflict? Another example: Apple ApPlE It can't conflict because Mojang and everything that runs Bukkit plugins will never allow two people with the same username at the same time, even if they have a different capitalization. This is guaranteed, and almost all plugins make use of that guarantee, including TFM and Essentials.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Jul 24, 2018 23:37:55 GMT
I can do this with @everyone and @admins, but if i do it with @thesilentpro and theres someone named @thesilentpro wouldnt that conflict? Another example: Apple ApPlE It can't conflict because Mojang and everything that runs Bukkit plugins will never allow two people with the same username at the same time, even if they have a different capitalization. This is guaranteed, and almost all plugins make use of that guarantee, including TFM and Essentials. Can i just use equalsignorecase? So it will ignore for any caps?
|
|
StevenNL2000
Forum Admin
Posts: 6,415
| Likes: 6,936
IGN: StevenNL2000
Timezone: UTC+01:00
Member is Staff. Need immediate assistance? Send a PM
|
Post by StevenNL2000 on Jul 25, 2018 8:58:42 GMT
It can't conflict because Mojang and everything that runs Bukkit plugins will never allow two people with the same username at the same time, even if they have a different capitalization. This is guaranteed, and almost all plugins make use of that guarantee, including TFM and Essentials. Can i just use equalsignorecase? So it will ignore for any caps? No, because there is no containsIgnoreCase(), so you wouldn't be able to check messages that contain more than just the mention. The solution is to use toLowerCase() on the message and then contains().
|
|