Revert API change to primitive return types

This commit is contained in:
Aust1n46 2020-08-25 17:19:10 -05:00
parent c0847f6b87
commit 4dc61a8b74
3 changed files with 37 additions and 31 deletions

View File

@ -1,4 +1,4 @@
name: VentureChat name: VentureChat
main: mineverse.Aust1n46.chat.bungee.MineverseChatBungee main: mineverse.Aust1n46.chat.bungee.MineverseChatBungee
version: 2.20.0 version: 2.20.1
author: Aust1n46 author: Aust1n46

View File

@ -208,10 +208,11 @@ public class ChatChannel {
/** /**
* Check if the chat channel is BungeeCord enabled. * Check if the chat channel is BungeeCord enabled.
* *
* @return true if the chat channel is BungeeCord enabled, false otherwise. * @return {@link Boolean#TRUE} if the chat channel is BungeeCord enabled,
* {@link Boolean#FALSE} otherwise.
*/ */
public boolean getBungee() { public Boolean getBungee() {
return bungee; return Boolean.valueOf(bungee);
} }
/** /**
@ -226,19 +227,21 @@ public class ChatChannel {
/** /**
* Check if autojoin is enabled for the chat channel. * Check if autojoin is enabled for the chat channel.
* *
* @return true if autojoin is enabled, false otherwise. * @return {@link Boolean#TRUE} if autojoin is enabled, {@link Boolean#FALSE}
* otherwise.
*/ */
public boolean getAutojoin() { public Boolean getAutojoin() {
return autojoin; return Boolean.valueOf(autojoin);
} }
/** /**
* Check if the chat channel allows muting. * Check if the chat channel allows muting.
* *
* @return true if muting is allowed, false otherwise. * @return {@link Boolean#TRUE} if muting is allowed, {@link Boolean#FALSE}
* otherwise.
*/ */
public boolean isMutable() { public Boolean isMutable() {
return mutable; return Boolean.valueOf(mutable);
} }
/** /**
@ -297,11 +300,11 @@ public class ChatChannel {
/** /**
* Check if the chat channel is the default chat channel. * Check if the chat channel is the default chat channel.
* *
* @return true if the chat channel is the default chat channel, false * @return {@link Boolean#TRUE} if the chat channel is the default chat channel,
* otherwise. * {@link Boolean#FALSE} otherwise.
*/ */
public boolean isDefaultchannel() { public Boolean isDefaultchannel() {
return defaultChannel; return Boolean.valueOf(defaultChannel);
} }
/** /**
@ -316,38 +319,40 @@ public class ChatChannel {
/** /**
* Get the distance of the chat channel in blocks. * Get the distance of the chat channel in blocks.
* *
* @return double * @return {@link Double}
*/ */
public double getDistance() { public Double getDistance() {
return distance; return Double.valueOf(distance);
} }
/** /**
* Checks if the chat channel has a distance set. * Checks if the chat channel has a distance set.
* *
* @return true if the distance is greater than zero, false otherwise. * @return {@link Boolean#TRUE} if the distance is greater than zero,
* {@link Boolean#FALSE} otherwise.
*/ */
public boolean hasDistance() { public Boolean hasDistance() {
return distance > 0; return Boolean.valueOf(distance > 0);
} }
/** /**
* Checks if the chat channel has a cooldown set. * Checks if the chat channel has a cooldown set.
* *
* @return true if the cooldown is greater than zero, false otherwise. * @return {@link Boolean#TRUE} if the cooldown is greater than zero,
* {@link Boolean#FALSE} otherwise.
*/ */
public boolean hasCooldown() { public Boolean hasCooldown() {
return cooldown > 0; return Boolean.valueOf(cooldown > 0);
} }
/** /**
* Checks if the chat channel has a permission set. * Checks if the chat channel has a permission set.
* *
* @return true if the permission does not equal * @return {@link Boolean#TRUE} if the permission does not equal
* {@link ChatChannel#NO_PERMISSIONS}, false otherwise. * {@link ChatChannel#NO_PERMISSIONS}, {@link Boolean#FALSE} otherwise.
*/ */
public boolean hasPermission() { public Boolean hasPermission() {
return !permission.equalsIgnoreCase(NO_PERMISSIONS); return Boolean.valueOf(!permission.equalsIgnoreCase(NO_PERMISSIONS));
} }
/** /**
@ -372,10 +377,11 @@ public class ChatChannel {
/** /**
* Checks if the chat channel has the filter enabled. * Checks if the chat channel has the filter enabled.
* *
* @return true if the chat channel has the filter enabled, false otherwise. * @return {@link Boolean#TRUE} if the chat channel has the filter enabled,
* {@link Boolean#FALSE} otherwise.
*/ */
public boolean isFiltered() { public Boolean isFiltered() {
return filter; return Boolean.valueOf(filter);
} }
/** /**

View File

@ -1,5 +1,5 @@
name: VentureChat name: VentureChat
version: 2.20.0 version: 2.20.1
api-version: 1.13 api-version: 1.13
main: mineverse.Aust1n46.chat.MineverseChat main: mineverse.Aust1n46.chat.MineverseChat
depend: [Vault, ProtocolLib, PlaceholderAPI] depend: [Vault, ProtocolLib, PlaceholderAPI]