WorldGuard es el estándar de oro para proteger áreas en tu servidor. Se usa principalmente para proteger el Spawn, zonas PvP, tiendas y cualquier construcción importante del servidor. Funciona definiendo "Regiones" (cubos invisibles) y aplicando "Flags" (reglas) a esas regiones. WorldGuard is the gold standard for protecting areas on your server. It is mainly used to protect the Spawn, PvP zones, shops, and any important server build. It works by defining "Regions" (invisible cubes) and applying "Flags" (rules) to those regions.
Sigue estos pasos para crear tu primera región de protección. Supongamos que vamos a proteger tu Spawn. Follow these steps to create your first protection region. Let's assume we are going to protect your Spawn.
//wandGet the WorldEdit wooden axe using the command: //wand//expand vertTo ensure you protect from bedrock to infinite sky, type the command: //expand vert/rg define spawn (Donde "spawn" es el nombre que le das).Now save the region! Type: /rg define spawn (Where "spawn" is the name you give it).Al hacer esto, por defecto nadie puede romper ni construir ahí, excepto los administradores (OP). By doing this, by default no one can break or build there, except administrators (OP).
Aunque está protegido contra grifeos, tal vez quieras desactivar el PvP o evitar que aparezcan monstruos de noche en el Spawn. Para eso usamos las Flags (banderas). Although it is protected against griefing, you might want to disable PvP or prevent monsters from spawning at night in the Spawn. For that we use Flags.
El comando base es:The base command is: /rg flag <nombre_region> <bandera> <allow/deny>
Ejemplos esenciales para el Spawn:Essential examples for the Spawn:
/rg flag spawn pvp deny (Desactiva el PvP)(Disables PvP)/rg flag spawn mob-spawning deny (Evita que aparezcan zombies/esqueletos)(Prevents zombies/skeletons from spawning)/rg flag spawn invincibility allow (Hace que los jugadores no reciban daño por caída o hambre)(Makes players take no fall or hunger damage)/rg flag spawn use allow (Permite que los jugadores abran puertas, botones, yunques, mesas de encantamiento)(Allows players to open doors, buttons, anvils, enchanting tables)/rg flag spawn pvp y se borrará.
If you made a mistake adding a rule and want to return to default, simply don't put allow or deny: /rg flag spawn pvp and it will clear it.
Imagina que tienes un Spawn gigante sin PvP. Pero dentro del Spawn, creas una pequeña arena donde SÍ quieres PvP. Si creas la región "arena" dentro de "spawn" y pones pvp allow, no funcionará. WorldGuard no sabrá a qué región hacerle caso.
Imagine you have a giant Spawn with no PvP. But inside the Spawn, you create a small arena where you DO want PvP. If you create the "arena" region inside "spawn" and set pvp allow, it won't work. WorldGuard won't know which region to listen to.
Para esto sirve la "Prioridad". La región con la prioridad más alta gana sobre las demás. Por defecto todas tienen prioridad 0. This is what "Priority" is for. The region with the highest priority wins over the others. By default they all have priority 0.
/rg setpriority arena 5
Ahora, al estar dentro de la arena, WorldGuard verá: Prioridad 5 (pvp allow) vs Prioridad 0 (pvp deny). Ganará la arena, y los jugadores podrán pelear. Now, when standing inside the arena, WorldGuard will see: Priority 5 (pvp allow) vs Priority 0 (pvp deny). The arena will win, and players can fight.
El mundo entero, donde no hay ninguna región definida, se considera la región "__global__". The entire world, where there is no defined region, is considered the "__global__" region.
Si tienes un servidor Lobby o Hub (donde los jugadores no deben romper absolutamente nada en NINGUNA parte del mundo), en lugar de intentar seleccionar todo con el hacha, simplemente usa: If you have a Lobby or Hub server (where players shouldn't break anything ANYWHERE in the world), instead of trying to select everything with the axe, simply use:
/rg flag __global__ build deny
/rg info: Muestra la información de la región en la que estás parado actualmente (quiénes son los dueños, qué flags tiene).Shows info about the region you are currently standing in (owners, flags)./rg list: Muestra una lista de todas las regiones creadas.Shows a list of all created regions./rg remove <nombre>: Elimina por completo una región y su protección.Completely deletes a region and its protection.