mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Add 'chatlengthlimit' setting - control max chat message length
This commit is contained in:
parent
0b38a4cec8
commit
d154f23bab
@ -25,6 +25,9 @@ public class NijikokunPermissions implements PermissionProvider {
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
server.getPluginManager().enablePlugin(permissionsPlugin);
|
server.getPluginManager().enablePlugin(permissionsPlugin);
|
||||||
|
if(permissionsPlugin.isEnabled() == false)
|
||||||
|
return null;
|
||||||
|
|
||||||
Log.info("Using Permissions " + permissionsPlugin.getDescription().getVersion() + " for access control");
|
Log.info("Using Permissions " + permissionsPlugin.getDescription().getVersion() + " for access control");
|
||||||
return new NijikokunPermissions(permissionsPlugin, name);
|
return new NijikokunPermissions(permissionsPlugin, name);
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,8 @@ public class PEXPermissions implements PermissionProvider {
|
|||||||
if (permissionsPlugin == null)
|
if (permissionsPlugin == null)
|
||||||
return null;
|
return null;
|
||||||
server.getPluginManager().enablePlugin(permissionsPlugin);
|
server.getPluginManager().enablePlugin(permissionsPlugin);
|
||||||
|
if(permissionsPlugin.isEnabled() == false)
|
||||||
|
return null;
|
||||||
if(PermissionsEx.isAvailable() == false)
|
if(PermissionsEx.isAvailable() == false)
|
||||||
return null;
|
return null;
|
||||||
Log.info("Using PermissionsEx " + permissionsPlugin.getDescription().getVersion() + " for access control");
|
Log.info("Using PermissionsEx " + permissionsPlugin.getDescription().getVersion() + " for access control");
|
||||||
|
@ -28,6 +28,9 @@ public class PermBukkitPermissions extends BukkitPermissions {
|
|||||||
return null;
|
return null;
|
||||||
|
|
||||||
server.getPluginManager().enablePlugin(permissionsPlugin);
|
server.getPluginManager().enablePlugin(permissionsPlugin);
|
||||||
|
if(permissionsPlugin.isEnabled() == false)
|
||||||
|
return null;
|
||||||
|
|
||||||
Log.info("Using PermissionsBukkit " + permissionsPlugin.getDescription().getVersion() + " for access control");
|
Log.info("Using PermissionsBukkit " + permissionsPlugin.getDescription().getVersion() + " for access control");
|
||||||
Log.info("Web interface permissions only available for online users");
|
Log.info("Web interface permissions only available for online users");
|
||||||
return new PermBukkitPermissions(permissionsPlugin, name, pd);
|
return new PermBukkitPermissions(permissionsPlugin, name, pd);
|
||||||
|
@ -28,6 +28,9 @@ public class bPermPermissions extends BukkitPermissions {
|
|||||||
if (permissionsPlugin == null)
|
if (permissionsPlugin == null)
|
||||||
return null;
|
return null;
|
||||||
server.getPluginManager().enablePlugin(permissionsPlugin);
|
server.getPluginManager().enablePlugin(permissionsPlugin);
|
||||||
|
if(permissionsPlugin.isEnabled() == false)
|
||||||
|
return null;
|
||||||
|
|
||||||
Log.info("Using bPermissions " + permissionsPlugin.getDescription().getVersion() + " for access control");
|
Log.info("Using bPermissions " + permissionsPlugin.getDescription().getVersion() + " for access control");
|
||||||
return new bPermPermissions(name, pd);
|
return new bPermPermissions(name, pd);
|
||||||
}
|
}
|
||||||
|
@ -32,6 +32,8 @@ components:
|
|||||||
webchat-requires-login: false
|
webchat-requires-login: false
|
||||||
# If set to true, users must have dynmap.webchat permission in order to chat
|
# If set to true, users must have dynmap.webchat permission in order to chat
|
||||||
webchat-permissions: false
|
webchat-permissions: false
|
||||||
|
# Limit length of single chat messages
|
||||||
|
chatlengthlimit: 256
|
||||||
# # Optional - make players hidden when they are inside/underground/in shadows (#=light level: 0=full shadow,15=sky)
|
# # Optional - make players hidden when they are inside/underground/in shadows (#=light level: 0=full shadow,15=sky)
|
||||||
# hideifshadow: 4
|
# hideifshadow: 4
|
||||||
# # Optional - make player hidden when they are under cover (#=sky light level,0=underground,15=open to sky)
|
# # Optional - make player hidden when they are under cover (#=sky light level,0=underground,15=open to sky)
|
||||||
@ -56,6 +58,8 @@ components:
|
|||||||
# webchat-requires-login: false
|
# webchat-requires-login: false
|
||||||
# # If set to true, users must have dynmap.webchat permission in order to chat
|
# # If set to true, users must have dynmap.webchat permission in order to chat
|
||||||
# webchat-permissions: false
|
# webchat-permissions: false
|
||||||
|
# # Limit length of single chat messages
|
||||||
|
# chatlengthlimit: 256
|
||||||
|
|
||||||
- class: org.dynmap.SimpleWebChatComponent
|
- class: org.dynmap.SimpleWebChatComponent
|
||||||
allowchat: true
|
allowchat: true
|
||||||
|
Loading…
Reference in New Issue
Block a user