The Meaning of Life, the Universe, and Everything.
Join Date:
4/25/2014
Posts:
46
Minecraft:
UltraBuildv2
Xbox:
ll DICTATOR ll
Member Details
I have a bit of an issue i am trying to resolve. .
I am using TownyChat v .042
I am trying to implement my own formatting for the global chat channel. I do not want to use the townychat config.yml to format chat for global because i am creating custom name colors and prefixes that are stored in my plugins config.yml. townychat pulls its information from your permissions file and does not allow for any customization as far as player name colors or the ability to change/select their prefixes. I have written my own command system to allow players to select which group prefix they wish to have displayed in chat and which color their name should be displayed in. It writes these values to a chat.yml. The problem im having is, that i am using the onPlayerChat(AsyncPlayerChatEvent event) to format chat and it is overwriting all the channel formats. I only want it to overwrite the global and local chat channels. I cannot call on methods in the TownyChat plugin as i get the cannot make static reference to non static method error. i cannot initalize or create an instance of the Chat class because its will try to enable itself again which throws console errors. So ultimately what i want to do is. . simply create a channel check statement or function that checks it the player is in a certian channel and if so, overwrite the formatting and any help would be great. . thanks
The Meaning of Life, the Universe, and Everything.
Join Date:
4/25/2014
Posts:
46
Minecraft:
UltraBuildv2
Xbox:
ll DICTATOR ll
Member Details
wow nobody eh ? well. . .looks like im gonna hafto build my own chat plugin
thats ok though because it will be wicked custom:
admins will be able to change their name color, name characters, or their prefix characters and colors
players will be able to choose their prefix and name color.
unlimited number of chat channels for worlds
100% customization of each channel via the chat.config and i dont plan to leave anything out either; spacing, colors, characters and their sources will all be configurable want to change your prefix ? simply enter a command type your prefix and viola! want to change your name color or characters ? enter the characters and colors u want via /command and viola!
only admins with permissions will be able to change their prefixes.
players can choose which prefix they would like to have displayed for the ranks/groups they acquire
man i LOVE JAVA and i like coding minecraf bukkit API!!!
This forum is mainly focused on Forge mods. You may have more luck asking Bukkit-related questions on Bukkit's forums.
Rollback Post to RevisionRollBack
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
I have a bit of an issue i am trying to resolve. .
I am using TownyChat v .042
I am trying to implement my own formatting for the global chat channel. I do not want to use the townychat config.yml to format chat for global because i am creating custom name colors and prefixes that are stored in my plugins config.yml. townychat pulls its information from your permissions file and does not allow for any customization as far as player name colors or the ability to change/select their prefixes. I have written my own command system to allow players to select which group prefix they wish to have displayed in chat and which color their name should be displayed in. It writes these values to a chat.yml. The problem im having is, that i am using the onPlayerChat(AsyncPlayerChatEvent event) to format chat and it is overwriting all the channel formats. I only want it to overwrite the global and local chat channels. I cannot call on methods in the TownyChat plugin as i get the cannot make static reference to non static method error. i cannot initalize or create an instance of the Chat class because its will try to enable itself again which throws console errors. So ultimately what i want to do is. . simply create a channel check statement or function that checks it the player is in a certian channel and if so, overwrite the formatting and any help would be great. . thanks
wow nobody eh ? well. . .looks like im gonna hafto build my own chat plugin
thats ok though because it will be wicked custom:
admins will be able to change their name color, name characters, or their prefix characters and colors
players will be able to choose their prefix and name color.
unlimited number of chat channels for worlds
100% customization of each channel via the chat.config and i dont plan to leave anything out either; spacing, colors, characters and their sources will all be configurable want to change your prefix ? simply enter a command type your prefix and viola! want to change your name color or characters ? enter the characters and colors u want via /command and viola!
only admins with permissions will be able to change their prefixes.
players can choose which prefix they would like to have displayed for the ranks/groups they acquire
man i LOVE JAVA and i like coding minecraf bukkit API!!!
This forum is mainly focused on Forge mods. You may have more luck asking Bukkit-related questions on Bukkit's forums.
Chisel Facades: For all your decorative pipe-hiding needs.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
ahh ok thanks man i was wondering. . lol