1
0
mirror of https://bitbucket.org/HeshamTB/greet.git synced 2024-11-22 12:32:16 +01:00

Bed enter event

This commit is contained in:
HeshamTB 2018-05-04 01:04:10 +03:00
parent 03909af16d
commit 75d53418e6
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -2,6 +2,7 @@ package i.hesh.greet;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.block.Bed;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler; import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener; import org.bukkit.event.Listener;
@ -38,9 +39,9 @@ public class events implements Listener {
public void player(PlayerBedEnterEvent e) { //Changed TRY! public void player(PlayerBedEnterEvent e) { //Changed TRY!
Player p = e.getPlayer(); Player p = e.getPlayer();
p.sendMessage("aaaaaaaaaaa");
Bukkit.getWorld("world").setFullTime(1); Bukkit.getWorld("world").setFullTime(1);
Bukkit.getConsoleSender().sendMessage(prefix +"Good Morning!"); p.sendMessage(prefix+" Good Morning!");
} }
} }