|
Before you crazies go berserk on me, I am fairly new to coding and worked to the best of my ability, a lot of it looks sloppy, while I wont deny that it isn't please leave constructive criticism, this is more only to read what you guys say in the comments on my mistakes and what I could have done better. I know this has been released many times before. This is my own personal take on it.
Difficulty: 1/10 C+P
What you're adding:
Files needed to edit: Commands.java, Playersave.java, player.java
Spoiler for Player.java:
Spoiler for PlayerSave.java:
Now open up Commands.java
(This part is up to you where you would like it, if you wish for these commands to be donator only, add them under donatorCommands or however you have it setup)
Spoiler for Yell Command:
Spoiler for Set Tag Command:
Spoiler for Set Tag Color:
Spoiler for Set Tag Shade:
Spoiler for Set Yell Color:
Spoiler for Set Yell Shade:
Additional command to get color codes on the fly.
Spoiler for Color Codes:
Once again I know this is horrible and messy please provide constructive criticism in the comments as I am looking to better myself.
Credits: Tiggy (for the customtag base)
https://www.rune-server.ee/runescape...r-command.html
Last edited by Queen Vi; 03-30-2017 at 09:57 PM. Reason: picture
I will use thanks for this.
I dont understand how this is "revamped"
Didn't do it for all of your commands because I'm on my phone, but a lot of this can be cut down.
Code:if (playerCommand.startsWith("yell")) { if (Connection.isMuted(c)) { c.sendMessage("You are muted and cannot yell."); return; } if (c.playerRights < 1) { c.sendMessage("<col=255>You must be a donator+ to use this command!</col>"); return; } final String message = ""+ c.customNameCol +""+ c.customNameShad +"["+ c.customYellTag +"] "+ Misc.optimizeText(c.playerName) +":</col></shad> "+ c.customYellCol +""+ c.customYellShad +""+ Misc.optimizeText(playerCommand.substring(5)) +""; Stream.of(Server.playerHandler.players).filter(Objects::nonNull).forEach(p -> p.sendMessage(message)); }
i am having issue changing the color of the yell
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |