473,804 Members | 3,091 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Orphaned Case, please help

1 New Member
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:250 60: 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 4328
Laharl
849 Recognized Expert Contributor
Um...the line where the error appears isn't in the code you've posted...
Oct 16 '08 #2
JosAH
11,448 Recognized Expert MVP
client.java:250 60: 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
1105
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 bottom area. Howe only the table header is shown at the bottom and the body content has splitted into the next page. It is because the remaining space is only enough for the table-header but not the content.
3
1828
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 the running psql process again, or cause it to disconnect and close? I tried "kill" but it didn't do anything. TIA, CSN
1
1305
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 works, but found something of an orphaned database. Anybody has an answer that could help me? I am using Access 2002 Thanks, Bart
0
1365
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 thing however they ask for ftp information to your file server so that they can index everything on your file server and then compare that to everything that they have indexed from their web scour of your site and what ever files are left over...
7
6060
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 website and also plug in this golden list of urls and have the program figure out which files are orphaned and not linked to any other webpage on our site. Is anyone aware of a tool that will do this? Thanks
0
1022
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 pages, mostly subpages of PyCon2005 and PyCon2006. Would someone with PyCon-fu want to check them out and decide their fate? If so, visit http://wiki.python.org/moin/OrphanedPages and scroll down to the "P" section.
2
1923
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
2082
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) in general. Suppose for instance that for some reason or another, after forking several child processes, the main process terminates or gets killed (or segfaults or whatever) and the child processes are orphaned. Is there any way to automatically...
4
1437
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 properly, consequently there are gazillions of orphaned tuples. If I was to leave these as they were and set constraints with NO CHECK is it likly that I am going to run into problems down the track?
0
9569
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10558
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10318
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10302
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2975
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.