"> Foro - [Ayuda] Detectar cuando un jugador está en una Selección [WorldEdit] en Ayuda y soporte - Page 1 of 1
Noviembre 08, 2025, 07:13:04 am
Visitante

Autor Tema: [Ayuda] Detectar cuando un jugador está en una Selección [WorldEdit]  (Leído 1734 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Febrero 22, 2015, 01:10:04 am

gaelito




  • Desconectado

  • *

    • *
    • *
    • *
  • Mensaje personal
    MinecraftMin, el mejor foro Español!
  • Actividad

  • 0%
  • Logros

Más información

Hooola a todos! :D
Tengo un pequeño problema sobre los plugins, y es que cuando intento detectar si un jugador está en una región, no lo consigo... La región es cuboide, ya que está guardada en la config.
Código: [Seleccionar]
@EventHandler
    public void detectregion(PlayerMoveEvent e){
    Location Regionmin = new Location(Bukkit.getWorld(Configuracion.getConfig().getString("RegionW")), Configuracion.getConfig().getInt("RegionminX"), Configuracion.getConfig().getInt("RegionminY"), Configuracion.getConfig().getInt("RegionminZ"));
    Location Regionmax = new Location(Bukkit.getWorld(Configuracion.getConfig().getString("RegionW")), Configuracion.getConfig().getInt("RegionmaxX"), Configuracion.getConfig().getInt("RegionmaxY"), Configuracion.getConfig().getInt("RegionmaxZ"));
    World rw = Bukkit.getWorld(Configuracion.getConfig().getString("RegionW"));
    CuboidSelection Region = new CuboidSelection(rw, Regionmin, Regionmax);
        Player p = e.getPlayer();
        if (Region.contains(e.getTo()) && !Region.contains(e.getFrom())){
            p.sendMessage("Estás en la region");
        }
}

Me guié por varios tutoriales de youtube, pero ninguno me ha servido :/ ¿Una poco de ayuda porfavor? D:

Linkback: https://minecraftmin.net/index.php?topic=8588.0
MinVip en MinPlay.




Share via delicious Share via digg Share via facebook Share via furl Share via linkedin Share via myspace Share via reddit Share via stumble Share via technorati Share via twitter

question
WorldEdit 1.8

Iniciado por xMAKERx

4 Respuestas
3039 Vistas
Último mensaje Diciembre 30, 2014, 09:22:31 pm
por Zetth_
xx
Cuando hablo, sale doble

Iniciado por Yeye

3 Respuestas
2916 Vistas
Último mensaje Marzo 24, 2014, 09:04:42 pm
por Yeye
thumbup
Como hacer que cuando alguien entre a mi server le de un rango del pex

Iniciado por mrwar

4 Respuestas
5291 Vistas
Último mensaje Febrero 19, 2015, 11:02:59 pm
por mrwar
xx
Como hacer que aparesca el peso del jugador en pantalla

Iniciado por JosephGames123

0 Respuestas
1682 Vistas
Último mensaje Septiembre 10, 2021, 02:53:25 am
por JosephGames123