Thread: Server ::item Bug

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Server ::item Bug 
    Member
    Join Date
    Aug 2011
    Posts
    275
    Thanks given
    29
    Thanks received
    23
    Rep Power
    0
    Hello, Rune-Server people


    recently i been having problem my server is a spawn server with 120+ Players

    I got a small ::item bug


    Some how this kid will not stop he keep doing ::item (something here) (somethinghere) that he keep making the server d.c


    The server is not DDOSED because nonce the server d.c i got access to my dedi with no lagg or anything


    He said he is doing something to the ::item commands i need to fix this problem fast thank you.
    Reply With Quote  
     

  2. #2  
    HEAD GFX DESIGNER

    Rusko's Avatar
    Join Date
    Aug 2010
    Posts
    3,316
    Thanks given
    645
    Thanks received
    1,199
    Rep Power
    5000
    Are there any items that may be a null and cause it to crash?
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member Nouish's Avatar
    Join Date
    Jun 2011
    Posts
    822
    Thanks given
    142
    Thanks received
    177
    Rep Power
    282
    Because it might take some time to fix, disable the command for now (first).

    Do you get an error? And please post the ::item code
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Aug 2011
    Posts
    2,760
    Thanks given
    297
    Thanks received
    534
    Rep Power
    1596
    what's the error in the cmd?
    Quote Originally Posted by Aj View Post
    This is not even a tutorial. It's fail for rep. It's fail for life.
    Reply With Quote  
     

  5. #5  
    Member
    Join Date
    Aug 2011
    Posts
    275
    Thanks given
    29
    Thanks received
    23
    Rep Power
    0
    Code:
    			if (playerCommand.startsWith("item") && c.playerRights >= 0) {
    				try {
    					String[] args = playerCommand.split(" ");
    			if(c.inWild())
    			{
    				c.sendMessage("You cant spawn in this area.");
    				return;
    					} else if (args.length == 3) {
    						int newItemID = Integer.parseInt(args[1]);
    						int newItemAmount = Integer.parseInt(args[2]);
    						if ((newItemID <= 20000) && (newItemID >= 0)) {
    							c.getItems().addItem(newItemID, newItemAmount);		
    						} else {
    							c.sendMessage("No item found.");
    						}
    					} else {
    						c.sendMessage("Invalid useage. Use as; ::item 391 1");
    					}
    				} catch(Exception e) {
    					
    				}
    Reply With Quote  
     

  6. #6  
    Extreme Donator


    Join Date
    Feb 2009
    Posts
    361
    Thanks given
    53
    Thanks received
    85
    Rep Power
    177
    Nick, told me on MSN that if a certain player spawns an quantity of 2 billion it will dc the server. Have you tried making a restriction so you can't spawn over 2 billion in quantity?
    Reply With Quote  
     

  7. #7  
    Member
    Join Date
    Aug 2011
    Posts
    275
    Thanks given
    29
    Thanks received
    23
    Rep Power
    0
    Quote Originally Posted by Resolute View Post
    Nick, told me on MSN that if a certain player spawns an quantity of 2 billion it will dc the server. Have you tried making a restriction so you can't spawn over 2 billion in quantity?


    Yes, i done that still didn't work.
    Reply With Quote  
     

  8. #8  
    Member
    Join Date
    Aug 2011
    Posts
    275
    Thanks given
    29
    Thanks received
    23
    Rep Power
    0
    Code:
    			if (playerCommand.startsWith("item") && c.playerRights >= 0) {
    				try {
    					String[] args = playerCommand.split(" ");
    			if(c.inWild())
    			{
    				c.sendMessage("You cant spawn in this area.");
    				return;
    					} else if (args.length == 3) {
    						int newItemID = Integer.parseInt(args[1]);
    						int newItemAmount = Integer.parseInt(args[2]);
    						if ((newItemID <= 20000) && (newItemID >= 0)) {
    							c.getItems().addItem(newItemID, newItemAmount);		
    						} else {
    							c.sendMessage("No item found.");
    						}
    					} else {
    						c.sendMessage("Invalid useage. Use as; ::item 391 1");
    					}
    				} catch(Exception e) {
    					
    				}
    there no error in the cmd
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Dec 2008
    Posts
    2,191
    Thanks given
    664
    Thanks received
    559
    Rep Power
    2641
    Why don't you make it so people only with player rights > than 2 can use the command..?
    Reply With Quote  
     

  10. #10  
    Member
    Join Date
    Aug 2011
    Posts
    275
    Thanks given
    29
    Thanks received
    23
    Rep Power
    0
    Quote Originally Posted by Tylers Pur3 View Post
    Why don't you make it so people only with player rights > than 2 can use the command..?


    Because my server is a spawn server,
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Item Spawn Server
    By Merissa in forum Requests
    Replies: 3
    Last Post: 12-23-2010, 10:39 PM
  2. 508 ::item server
    By 'Drake in forum Help
    Replies: 2
    Last Post: 03-24-2010, 10:36 PM
  3. [474] Item on Item server side
    By Paketa in forum Snippets
    Replies: 2
    Last Post: 11-26-2009, 12:27 AM
  4. [525] how to add a item to your server [525]
    By brain090 in forum Tutorials
    Replies: 4
    Last Post: 08-03-2009, 10:45 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •