1919 * FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
2020 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2121 */
22- package me .refrac .simplegems .api ;
22+ package me .refracdevelopment .simplegems .api ;
2323
24- import me .refrac .simplegems .plugin .manager .ProfileData ;
24+ import me .refracdevelopment .simplegems .plugin .manager .ProfileData ;
25+ import org .bukkit .OfflinePlayer ;
2526import org .bukkit .entity .Player ;
26- import org .bukkit .inventory .ItemStack ;
2727import org .bukkit .plugin .IllegalPluginAccessException ;
2828
2929/**
@@ -60,14 +60,12 @@ public double getGems(Player player) {
6060 }
6161
6262 /**
63- * This will pay gems to the specified player
63+ * Used to get offline player gems.
6464 *
65- * @param player player profile
66- * @param target target profile
67- * @param amount paid gems
68- * @param silent silent gems
65+ * @param player player
66+ * @return Player's gems
6967 */
70- public void payGems ( Player player , Player target , double amount , boolean silent ) {
68+ public double getOfflineGems ( OfflinePlayer player ) {
7169 throw new IllegalPluginAccessException ("API is not registered!" );
7270 }
7371
@@ -94,6 +92,17 @@ public boolean hasGems(Player player, double amount) {
9492 throw new IllegalPluginAccessException ("API is not registered!" );
9593 }
9694
95+ /**
96+ * Used to check if the offline player has enough gems
97+ *
98+ * @param player player
99+ * @param amount gems
100+ * @return If the player has enough gems
101+ */
102+ public boolean hasOfflineGems (Player player , double amount ) {
103+ throw new IllegalPluginAccessException ("API is not registered!" );
104+ }
105+
97106 /**
98107 * Used to give player gems.
99108 *
@@ -104,6 +113,16 @@ public void giveGems(Player player, double amount) {
104113 throw new IllegalPluginAccessException ("API is not registered!" );
105114 }
106115
116+ /**
117+ * Used to give offline player gems.
118+ *
119+ * @param player player
120+ * @param amount gems
121+ */
122+ public void giveOfflineGems (OfflinePlayer player , double amount ) {
123+ throw new IllegalPluginAccessException ("API is not registered!" );
124+ }
125+
107126 /**
108127 * Used to take player gems.
109128 *
@@ -114,6 +133,16 @@ public void takeGems(Player player, double amount) {
114133 throw new IllegalPluginAccessException ("API is not registered!" );
115134 }
116135
136+ /**
137+ * Used to take offline player gems.
138+ *
139+ * @param player data
140+ * @param amount gems
141+ */
142+ public void takeOfflineGems (OfflinePlayer player , double amount ) {
143+ throw new IllegalPluginAccessException ("API is not registered!" );
144+ }
145+
117146 /**
118147 * Used to set player gems.
119148 *
@@ -123,4 +152,14 @@ public void takeGems(Player player, double amount) {
123152 public void setGems (Player player , double amount ) {
124153 throw new IllegalPluginAccessException ("API is not registered!" );
125154 }
155+
156+ /**
157+ * Used to set offline player gems.
158+ *
159+ * @param player data
160+ * @param amount gems
161+ */
162+ public void setOfflineGems (OfflinePlayer player , double amount ) {
163+ throw new IllegalPluginAccessException ("API is not registered!" );
164+ }
126165}
0 commit comments