mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-18 16:45:37 +01:00
Separate toggle for world teleports using homes.
This commit is contained in:
parent
fa58503c9f
commit
74f0babc7d
@ -159,6 +159,8 @@ public interface ISettings extends IConf
|
||||
boolean getRepairEnchanted();
|
||||
|
||||
boolean isWorldTeleportPermissions();
|
||||
|
||||
boolean isWorldHomePermissions();
|
||||
|
||||
boolean registerBackInListener();
|
||||
|
||||
|
@ -711,6 +711,12 @@ public class Settings implements ISettings
|
||||
{
|
||||
return config.getBoolean("world-teleport-permissions", false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isWorldHomePermissions()
|
||||
{
|
||||
return config.getBoolean("world-home-permissions", false);
|
||||
}
|
||||
private boolean registerBackInListener;
|
||||
|
||||
@Override
|
||||
|
@ -101,7 +101,7 @@ public class Commandhome extends EssentialsCommand
|
||||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
if (user.getWorld() != loc.getWorld() && ess.getSettings().isWorldTeleportPermissions()
|
||||
if (user.getWorld() != loc.getWorld() && ess.getSettings().isWorldHomePermissions()
|
||||
&& !user.isAuthorized("essentials.world." + loc.getWorld().getName()))
|
||||
{
|
||||
throw new Exception(_("noPerm", "essentials.world." + loc.getWorld().getName()));
|
||||
|
@ -285,7 +285,7 @@ no-god-in-worlds:
|
||||
# - world_nether
|
||||
|
||||
# Set to true to enable per-world permissions for teleporting between worlds with essentials commands
|
||||
# This applies to /world, /home, /back, /tp[a|o][here|all], but not warps.
|
||||
# This applies to /world, /back, /tp[a|o][here|all], but not warps.
|
||||
# Give someone permission to teleport to a world with essentials.world.<worldname>
|
||||
world-teleport-permissions: false
|
||||
|
||||
@ -320,6 +320,11 @@ spawn-if-no-home: true
|
||||
# Allows people to set their bed at daytime
|
||||
update-bed-at-daytime: true
|
||||
|
||||
# Set to true to enable per-world permissions for using homes to teleport between worlds
|
||||
# This applies to the /home only.
|
||||
# Give someone permission to teleport to a world with essentials.world.<worldname>
|
||||
world-home-permissions: false
|
||||
|
||||
# Allow players to have multiple homes.
|
||||
# Players need essentials.sethome.multiple before they can have more than 1 home, default to 'default' below.
|
||||
# Define different amounts of multiple homes for different permissions, e.g. essentials.sethome.multiple.vip
|
||||
|
Loading…
Reference in New Issue
Block a user