diff --git a/DynmapCore/src/main/java/org/dynmap/DynmapCore.java b/DynmapCore/src/main/java/org/dynmap/DynmapCore.java index 41fcfd67..fba99b8f 100644 --- a/DynmapCore/src/main/java/org/dynmap/DynmapCore.java +++ b/DynmapCore/src/main/java/org/dynmap/DynmapCore.java @@ -135,6 +135,7 @@ public class DynmapCore implements DynmapCommonAPI { private int fullrenderplayerlimit; /* Number of online players that will cause fullrender processing to pause */ private int updateplayerlimit; /* Number of online players that will cause update processing to pause */ private String publicURL; // If set, public HRL for accessing dynmap (declared by administrator) + private String noPermissionMsg; private boolean didfullpause; private boolean didupdatepause; private Map> ids_by_ip = new HashMap>(); @@ -571,6 +572,9 @@ public class DynmapCore implements DynmapCommonAPI { Log.info("EXPERIMENTAL: chunk migration enabled"); publicURL = configuration.getString("publicURL", ""); + + /* Send this message if the player does not have permission to use the command */ + noPermissionMsg = configuration.getString("noPermissionMsg", "You don't have permission to use this command!"); /* Load preupdate/postupdate commands */ ImageIOManager.preUpdateCommand = configuration.getString("custom-commands/image-updates/preupdatecommand", ""); @@ -2097,7 +2101,7 @@ public class DynmapCore implements DynmapCommonAPI { if (!(sender instanceof DynmapPlayer) || sender.isOp()) { return true; } else if (!sender.hasPrivilege(permission.toLowerCase())) { - sender.sendMessage("You don't have permission to use this command!"); + sender.sendMessage(noPermissionMsg); return false; } return true; diff --git a/fabric-1.14.4/src/main/resources/configuration.txt b/fabric-1.14.4/src/main/resources/configuration.txt index 9889eaa3..cd925d90 100644 --- a/fabric-1.14.4/src/main/resources/configuration.txt +++ b/fabric-1.14.4/src/main/resources/configuration.txt @@ -470,7 +470,10 @@ soft-ref-cache: true # Published public URL for Dynmap server (allows users to use 'dynmap url' command to get public URL usable to access server # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap - + +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/fabric-1.15.2/src/main/resources/configuration.txt b/fabric-1.15.2/src/main/resources/configuration.txt index fbf2a220..cd925d90 100644 --- a/fabric-1.15.2/src/main/resources/configuration.txt +++ b/fabric-1.15.2/src/main/resources/configuration.txt @@ -471,6 +471,9 @@ soft-ref-cache: true # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/fabric-1.16.4/src/main/resources/configuration.txt b/fabric-1.16.4/src/main/resources/configuration.txt index 41fefecf..9781d362 100644 --- a/fabric-1.16.4/src/main/resources/configuration.txt +++ b/fabric-1.16.4/src/main/resources/configuration.txt @@ -479,6 +479,9 @@ soft-ref-cache: true # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/fabric-1.17.1/src/main/resources/configuration.txt b/fabric-1.17.1/src/main/resources/configuration.txt index 41fefecf..9781d362 100644 --- a/fabric-1.17.1/src/main/resources/configuration.txt +++ b/fabric-1.17.1/src/main/resources/configuration.txt @@ -479,6 +479,9 @@ soft-ref-cache: true # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/fabric-1.18.2/src/main/resources/configuration.txt b/fabric-1.18.2/src/main/resources/configuration.txt index c0379e35..2e123c79 100644 --- a/fabric-1.18.2/src/main/resources/configuration.txt +++ b/fabric-1.18.2/src/main/resources/configuration.txt @@ -477,6 +477,9 @@ soft-ref-cache: true # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/fabric-1.18/src/main/resources/configuration.txt b/fabric-1.18/src/main/resources/configuration.txt index c0379e35..2e123c79 100644 --- a/fabric-1.18/src/main/resources/configuration.txt +++ b/fabric-1.18/src/main/resources/configuration.txt @@ -477,6 +477,9 @@ soft-ref-cache: true # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/forge-1.12.2/src/main/resources/configuration.txt b/forge-1.12.2/src/main/resources/configuration.txt index 8b7fd7ff..55c511d6 100644 --- a/forge-1.12.2/src/main/resources/configuration.txt +++ b/forge-1.12.2/src/main/resources/configuration.txt @@ -461,7 +461,10 @@ soft-ref-cache: true #enterexitUseTitle: true # Set true if new enter messages should supercede pending exit messages (vs being queued in order), default false #enterReplacesExits: true - + +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/forge-1.14.4/src/main/resources/configuration.txt b/forge-1.14.4/src/main/resources/configuration.txt index 4e9bec12..a58a9e9d 100644 --- a/forge-1.14.4/src/main/resources/configuration.txt +++ b/forge-1.14.4/src/main/resources/configuration.txt @@ -478,7 +478,10 @@ soft-ref-cache: true # Published public URL for Dynmap server (allows users to use 'dynmap url' command to get public URL usable to access server # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap - + +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/forge-1.15.2/src/main/resources/configuration.txt b/forge-1.15.2/src/main/resources/configuration.txt index 4e9bec12..a58a9e9d 100644 --- a/forge-1.15.2/src/main/resources/configuration.txt +++ b/forge-1.15.2/src/main/resources/configuration.txt @@ -478,7 +478,10 @@ soft-ref-cache: true # Published public URL for Dynmap server (allows users to use 'dynmap url' command to get public URL usable to access server # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap - + +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/forge-1.16.5/src/main/resources/configuration.txt b/forge-1.16.5/src/main/resources/configuration.txt index 748a4f77..161202ed 100644 --- a/forge-1.16.5/src/main/resources/configuration.txt +++ b/forge-1.16.5/src/main/resources/configuration.txt @@ -478,7 +478,10 @@ soft-ref-cache: true # Published public URL for Dynmap server (allows users to use 'dynmap url' command to get public URL usable to access server # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap - + +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/forge-1.17.1/src/main/resources/configuration.txt b/forge-1.17.1/src/main/resources/configuration.txt index a41e9950..6931e0c1 100644 --- a/forge-1.17.1/src/main/resources/configuration.txt +++ b/forge-1.17.1/src/main/resources/configuration.txt @@ -478,7 +478,10 @@ soft-ref-cache: true # Published public URL for Dynmap server (allows users to use 'dynmap url' command to get public URL usable to access server # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap - + +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/forge-1.18.2/src/main/resources/configuration.txt b/forge-1.18.2/src/main/resources/configuration.txt index 748a4f77..161202ed 100644 --- a/forge-1.18.2/src/main/resources/configuration.txt +++ b/forge-1.18.2/src/main/resources/configuration.txt @@ -478,7 +478,10 @@ soft-ref-cache: true # Published public URL for Dynmap server (allows users to use 'dynmap url' command to get public URL usable to access server # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap - + +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/forge-1.18/src/main/resources/configuration.txt b/forge-1.18/src/main/resources/configuration.txt index 748a4f77..161202ed 100644 --- a/forge-1.18/src/main/resources/configuration.txt +++ b/forge-1.18/src/main/resources/configuration.txt @@ -478,7 +478,10 @@ soft-ref-cache: true # Published public URL for Dynmap server (allows users to use 'dynmap url' command to get public URL usable to access server # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap - + +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false diff --git a/spigot/src/main/resources/configuration.txt b/spigot/src/main/resources/configuration.txt index 87b593fd..f48f19e2 100644 --- a/spigot/src/main/resources/configuration.txt +++ b/spigot/src/main/resources/configuration.txt @@ -505,6 +505,9 @@ soft-ref-cache: true # If not set, 'dynmap url' will not return anything. URL should be fully qualified (e.g. https://mc.westeroscraft.com/) #publicURL: http://my.greatserver.com/dynmap +# Send this message if the player does not have permission to use the command +noPermissionMsg: "You don't have permission to use this command!" + # Set to true to enable verbose startup messages - can help with debugging map configuration problems # Set to false for a much quieter startup log verbose: false