473,405 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Orphaned Case, please help

Here is the code

Expand|Select|Wrap|Line Numbers
  1. }
  2.  if(command.equalsIgnoreCase("home"))
  3.     {
  4. if(teleblock == true){
  5. sendMessage("A magical force stops you from teleporting."); //made by Musicmad441
  6. }
  7. else
  8. {
  9.         teleportToX = 3093;
  10.         teleportToY = 3491;
  11.     sendMessage("You teleport to Home.");
  12. }
  13.       }
  14. if (command.startsWith("jail") && command.length() > 5 && playerRights >= 1) { 
  15.     if(teleblock == true){
  16. sendMessage("A magical force stops you from teleporting."); //made by Musicmad441
  17. }
  18.             String name = command.substring(5); 
  19.             client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)]; 
  20.                c.teleportToX = 3080; 
  21.                c.teleportToY = 3506; 
  22.             c.teleblock = true; 
  23.                c.sendMessage("You have been thrown in jail for breaking the rules!"); 
  24.                c.sendMessage("A mod or Admin will release you if they feel like it!"); 
  25.                                                    c.teleblock = true; 
  26.             updateRequired = true; 
  27.             appearanceUpdateRequired = true; 
  28. }
  29. else if (command.startsWith("unjail") && command.length() > 7 && playerRights >= 3) { 
  30.             String name = command.substring(7); 
  31.             client c = (client) PlayerHandler.players[PlayerHandler.getPlayerID(name)]; 
  32.                c.teleportToX = 3093; 
  33.                c.teleportToY = 3491; 
  34.             c.teleblock = false; 
  35.                c.sendMessage("Ahhh!feel the fresh air!Do not break the rules again!."); 
  36.             updateRequired = true; 
  37.             appearanceUpdateRequired = true;
Now here is the error, when I compile it:

client.java:25060: orphaned case
case 9125: // Accurate
^
1 error
Files Compiled Successfully!
Press any key to continue . . .

So I do not know what to do, what could be the problem? Im really new to java though.
Oct 16 '08 #1
2 4302
Laharl
849 Expert 512MB
Um...the line where the error appears isn't in the code you've posted...
Oct 16 '08 #2
JosAH
11,448 Expert 8TB
client.java:25060: orphaned case
Are you sure the source code for that class is at least 25060 lines long?

kind regards,

Jos (flabbergasted)
Oct 17 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: george1069 george1069 | last post by:
Hi, I'm repeating <fo-table> using loop and there is <fo-table-header> to generate a title for each of the table generated. In one of the output pages, a new table is generated near to the...
3
by: CSN | last post by:
Every now and then my connection to my remote server will disconnect. If I was using the psql commandline, "ps" will show it's still running (after I log back on). Is there a way to get access to...
1
by: Doc | last post by:
I have a problem, I reinstalled my computer (upgraded to XP) and thought I had a save backup of my database, though now I am not able to open it anymore. I don't have any understanding of how it...
0
by: newspost2000 | last post by:
I have built a Domino Web Application. I am looking for a tool that will be able to scour my site and find all files that are orphaned. I have found a few tools on the web that can do this kind of...
7
by: newspost2000 | last post by:
I have a golden list of urls to each and every file on our corporate website. This includes all webpages and file resources. I am looking for a tool whereby I can plug in the base url of our...
0
by: skip | last post by:
Over the past couple days I've been trying to reduce the large number of orphaned wiki pages, deleting many, stitching many others back into the fabric. There are a bunch of orphaned PyCon-related...
2
by: Mike | last post by:
If you have the following xhtml fragment <div> Some text </div> This will be an element with innerText of "Some text". But in the case of <div> Some text
2
by: rocco.rossi | last post by:
I'm using the Python processing module. I've just run into a problem though. Actually, it's a more general problem that isn't specific to this module, but to the handling of Unix (Linux processes)...
4
by: John Sheppard | last post by:
Hello there, I was wondering if anyone could give me some advice on orphaned rows and foreign key constraints. I am migrating a MS-Access database that didnt have any relations setup...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.