317 Delta Coder
September 10th, 2011, 16:29
Difficulty: 1/10
Revision: 317
Step 1:
Open (your Source)/src/server/models/players/packets/commands.java
Search for (include the "'s): "players"
Under that Command add:
if (playerCommand.startsWith("myrank")) {
if (c.playerRights == 0 && c.isDonator == 0) {
sendMessage("You are Currently Ranked as an: <col=255>Player</col>.");
} else if (c.playerRights == 0 && c.isDonator == 1) {
sendMessage("You are Currently Ranked as an: <col=255>Donator</col>.");
} else if (c.playerRights == 1) {
sendMessage("You are Currently Ranked as an: <col=255>Moderator</col>.");
} else if (c.playerRights == 2) {
sendMessage("You are Currently Ranked as an: <col=255>Administrator</col>.");
} else if (c.playerRights == 3) {
sendMessage("You are Currently Ranked as an: <col=255>Owner</col>.");
}
}
Credits:
Me - 100%
Just a Simple Command
Revision: 317
Step 1:
Open (your Source)/src/server/models/players/packets/commands.java
Search for (include the "'s): "players"
Under that Command add:
if (playerCommand.startsWith("myrank")) {
if (c.playerRights == 0 && c.isDonator == 0) {
sendMessage("You are Currently Ranked as an: <col=255>Player</col>.");
} else if (c.playerRights == 0 && c.isDonator == 1) {
sendMessage("You are Currently Ranked as an: <col=255>Donator</col>.");
} else if (c.playerRights == 1) {
sendMessage("You are Currently Ranked as an: <col=255>Moderator</col>.");
} else if (c.playerRights == 2) {
sendMessage("You are Currently Ranked as an: <col=255>Administrator</col>.");
} else if (c.playerRights == 3) {
sendMessage("You are Currently Ranked as an: <col=255>Owner</col>.");
}
}
Credits:
Me - 100%
Just a Simple Command