Guest User

Untitled

a guest
Jun 4th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.14 KB | None | 0 0
  1. public void handlePlayerEnter(PlayerEntered event) {
  2.         String pName;
  3.        
  4.         pName = b.getPlayerName(event.getPlayerID());   //Gets Player Name
  5.         Player p = b.getPlayer(event.getPlayerID());    //Gets Player just entered
  6.         PubPlayerList.add(p);                           //Adds Player into Pub List
  7.         //Adds player to MR Player list
  8.         kzP.createPlayer(pName);                        //Creates MRPlayer
  9.         KZPlayer kzp = kzP.getPlayer(pName);            //Gets MRPlayer created
  10.        
  11.         if (db.CheckExist(pName))
  12.         {
  13.             db.GetPlayer(kzp);
  14.             kzChat.debugMessage("Loaded "+pName+"s Account");
  15.         }
  16.    
  17.         if (!db.CheckExist(pName))
  18.         {
  19.             db.updatePlayer(kzp);
  20.             kzChat.debugMessage("Created "+pName+"s Account");
  21.         }
  22.        
  23.         kzp.PlayerID(event.getPlayerID());              //Sets PlayerID into MRPlayer Object
  24.         kzp.InitializePlayer();                         //Starts Player Timer for Kill Messages
  25.         kzp.PlayerShip(p.getShipType());
  26.         b.sendPrivateMessage(pName, "Welcome "+pName+" to SSDZ KAOS, Where Zombies are taking over the land"
  27.                 + " and you are here to destroy them! If you would like to contruct your house in the neighborhood"
  28.                 + " please contact AXE DEMENTO, If you would like to see your stats type !kc");
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment