mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-03 06:28:57 +00:00
v0.24:
- Update to refect permission changes in Towny.
This commit is contained in:
1 parent
b8b273b37e
commit
8f909b8591
3 files changed
+7
-5
No files matched your search
+3
-1
@@ -107,4 +107,6 @@ v0.21:
|
||||
v0.22:
|
||||
- Change channel sub classing method to allow 3rd party plugins to create their own channel types (phrstbrn).
|
||||
v0.23:
|
||||
- Update for craftbukkit-1.1-R6.
|
||||
- Update for craftbukkit-1.1-R6.
|
||||
v0.24:
|
||||
- Update to refect permission changes in Towny.
|
||||
@@ -73,7 +73,7 @@ public class ChannelsHolder {
|
||||
for (Channel channel: channels.values()) {
|
||||
if (channel.getCommands().contains(command.toLowerCase())) {
|
||||
if (!plugin.getTowny().isPermissions()
|
||||
|| (plugin.getTowny().isPermissions() && ((TownyUniverse.getPermissionSource().hasPermission(player, channel.getPermission()))
|
||||
|| (plugin.getTowny().isPermissions() && ((TownyUniverse.getPermissionSource().has(player, channel.getPermission()))
|
||||
|| (channel.getPermission().isEmpty()))))
|
||||
return channel;
|
||||
|
||||
@@ -99,7 +99,7 @@ public class ChannelsHolder {
|
||||
for (Channel channel: channels.values()) {
|
||||
if (channel.getType().equals(type)) {
|
||||
if (!plugin.getTowny().isPermissions()
|
||||
|| (plugin.getTowny().isPermissions() && ((TownyUniverse.getPermissionSource().hasPermission(player, channel.getPermission()))
|
||||
|| (plugin.getTowny().isPermissions() && ((TownyUniverse.getPermissionSource().has(player, channel.getPermission()))
|
||||
|| (channel.getPermission().isEmpty())))) {
|
||||
if (channel.getRange() == -1) {
|
||||
global = channel;
|
||||
|
||||
@@ -160,7 +160,7 @@ public class StandardChannel extends Channel {
|
||||
|
||||
int count = 0;
|
||||
for (Player test : TownyUniverse.getOnlinePlayers()) {
|
||||
if (!plugin.getTowny().isPermissions() || (plugin.getTowny().isPermissions() && TownyUniverse.getPermissionSource().hasPermission(test, getPermission()))) {
|
||||
if (!plugin.getTowny().isPermissions() || (plugin.getTowny().isPermissions() && TownyUniverse.getPermissionSource().has(test, getPermission()))) {
|
||||
|
||||
if (bEssentials) {
|
||||
try {
|
||||
@@ -216,7 +216,7 @@ public class StandardChannel extends Channel {
|
||||
|
||||
int count = 0;
|
||||
for (Player test : TownyUniverse.getOnlinePlayers()) {
|
||||
if (!plugin.getTowny().isPermissions() || (plugin.getTowny().isPermissions() && TownyUniverse.getPermissionSource().hasPermission(test, getPermission()))) {
|
||||
if (!plugin.getTowny().isPermissions() || (plugin.getTowny().isPermissions() && TownyUniverse.getPermissionSource().has(test, getPermission()))) {
|
||||
|
||||
if (bEssentials) {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user