Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void handlePlayerEnter(PlayerEntered event) {
- String pName;
- pName = b.getPlayerName(event.getPlayerID()); //Gets Player Name
- Player p = b.getPlayer(event.getPlayerID()); //Gets Player just entered
- PubPlayerList.add(p); //Adds Player into Pub List
- //Adds player to MR Player list
- kzP.createPlayer(pName); //Creates MRPlayer
- KZPlayer kzp = kzP.getPlayer(pName); //Gets MRPlayer created
- if (db.CheckExist(pName))
- {
- db.GetPlayer(kzp);
- kzChat.debugMessage("Loaded "+pName+"s Account");
- }
- if (!db.CheckExist(pName))
- {
- db.updatePlayer(kzp);
- kzChat.debugMessage("Created "+pName+"s Account");
- }
- kzp.PlayerID(event.getPlayerID()); //Sets PlayerID into MRPlayer Object
- kzp.InitializePlayer(); //Starts Player Timer for Kill Messages
- kzp.PlayerShip(p.getShipType());
- b.sendPrivateMessage(pName, "Welcome "+pName+" to SSDZ KAOS, Where Zombies are taking over the land"
- + " and you are here to destroy them! If you would like to contruct your house in the neighborhood"
- + " please contact AXE DEMENTO, If you would like to see your stats type !kc");
- }
Advertisement
Add Comment
Please, Sign In to add comment