Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/ARCore/ARCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,15 @@ public function onEnable(){
"Player-Lose-Coins-PerDeath" => 10,
"Player-Gains-Coins-For-Killing-Message" => "You Gains 20 Coins For Killed A Player.",
"Player-Lose-Coins-For-Dying-Message" => "You Lose 10 Coins For Being Killed By A Player.",
"OnJoin" => [
"EnableSendMessage" => true,
"howManyMessage" => 2,
"message" => [
0 => "First Message.",
1 => "Second Message",
2 => "Third Message",
],
],
));

/////Start Of Clans [OnEnable]/////
Expand Down Expand Up @@ -663,6 +672,15 @@ public function onJoiningPlayerSettings(PlayerJoinEvent $event){
$player->setLevel($worldlevel);
$player->teleport(new Vector3($positionx, $positiony, $positionz, $worldlevel));
$player->setRotation(270, 0);//DAFUQ TO USE THIS??!!
if($this->custom->get("OnJoin.EnableSendMessage") == true){
$i = $this->custom->get("OnJoin.howManyMessage"); // 0 // 2 //3 etc
for($ii = 0; $ii <= $i; $ii++){
// example : OnJoin => message => $ii => "Message";
// by AcNEO to MalakasPlazMC
$player->sendMessage($this->custom->get("OnJoin.message." . $ii));
// now how many message is up to you.
}
}
}
/*TEST*/
public function disableBed(PlayerBedEnterEvent $event){
Expand Down