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