lol all those comments in your file, nice job
|
|
Description: 100% realistic player's usernames in frames or messages. Username starts with UpperCase, and after every space in username it also starts with UpperCase.
Example:
Difficulty: 1, have a little brain to find use of this.
Files/Classes Modified: Player.java, also any, you wan't to include WordUtils.
Procedure
Step 1: Ok first of all add this java file into your rs2\util\ . And name it "WordUtils"
Code:/* * Copyright 2002-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package palidino76.rs2.util; /** * <p>Operations on Strings that contain words.</p> * * <p>This class tries to handle <code>null</code> input gracefully. * An exception will not be thrown for a <code>null</code> input. * Each method documents its behaviour in more detail.</p> * * @author Apache Jakarta Velocity * @author Henri Yandell * @author Stephen Colebourne * @author <a href="[Only registered and activated users can see links. ]
Step 2: Lets test it, so open your players\Player.java
At the top of the file there are other imports, add this:
And find your DeathMessages, from now on in case of using"username" use:Code:import palidino76.rs2.util.WordUtils;
so the whole line should look like this:Code:WordUtils.capitalizeFully(p.username)
Effect:Code:p.frames.sendMessage(p2, WordUtils.capitalizeFully(p.username) + " falls before your might.");
So you can use this in any frames, like dueling, trading etc...
Credits: Credits to the Apache for creating, me for finding out...

lol all those comments in your file, nice job

This is just leeched from my request which zee best answered except you made a new java file with it so its pointless tea bagged.

so you just admitted you leeched this? lol


| « 508 Server Manager V1.2! Now With Auto Jdk Detection! | How to get Palidino76's 508 server working » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |