Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit e26e232

Browse files
committed
Fix License and Readme
1 parent 55e1de3 commit e26e232

File tree

3 files changed

+24
-38
lines changed

3 files changed

+24
-38
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Refrac
3+
Copyright (c) 2022 RefracDevelopment
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# SimpleGemsAPI
2-
Welcome to the official PandorianGemsAPI!
2+
Welcome to the official SimpleGemsAPI!
33

44
# API Usage
5-
Import the PandorianGemsAPI.jar into your project.
5+
Import the SimpleGemsAPI.jar into your project.
66
Make sure you add PandorianGems to your depends or softdepends
77
```YAML
88
depend:
9-
- PandorianGems
9+
- SimpleGems
1010

1111
softdepend:
12-
- PandorianGems
12+
- SimpleGems
1313
```
1414
1515
```JAVA
@@ -21,14 +21,6 @@ public boolean hasGems(Player player, double amount) {
2121
return GemsAPI.INSTANCE.hasGems(player, amount);
2222
}
2323

24-
public void payGems(Player player, Player target, double amount, boolean silent) {
25-
GemsAPI.INSTANCE.payGems(player, target, amount, false);
26-
}
27-
28-
public void withdrawGems(Player player, int amount) {
29-
GemsAPI.INSTANCE.withdrawGems(player, amount);
30-
}
31-
3224
public void giveGemsItem(Player player, int amount) {
3325
GemsAPI.INSTANCE.giveGemsItem(player, amount);
3426
}

src/main/java/me/refrac/simplegems/api/GemsAPI.java

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
/*
2-
* Copyright (c) Refrac
3-
* If you have any questions please join my discord https://discord.gg/jVnmm7QnQU
2+
* The MIT License (MIT)
3+
*
4+
* Copyright (c) 2022 RefracDevelopment
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
17+
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
18+
* PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
19+
* FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20+
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
421
*/
522
package me.refrac.simplegems.api;
623

@@ -54,18 +71,6 @@ public void payGems(Player player, Player target, double amount, boolean silent)
5471
throw new IllegalPluginAccessException("API is not registered!");
5572
}
5673

57-
/**
58-
* This will give gems in item form
59-
* to the player who withdraw them or
60-
* received them by doing events etc
61-
*
62-
* @param player player profile
63-
* @param amount withdrawal gems
64-
*/
65-
public void withdrawGems(Player player, int amount) {
66-
throw new IllegalPluginAccessException("API is not registered!");
67-
}
68-
6974
/**
7075
* This will give gems in item form
7176
* to the player who withdraw them or
@@ -78,17 +83,6 @@ public void giveGemsItem(Player player, int amount) {
7883
throw new IllegalPluginAccessException("API is not registered!");
7984
}
8085

81-
/**
82-
* This will give gems in item form
83-
* to the player who withdraw them or
84-
* received them by doing events etc
85-
*
86-
* @return an item stack to redeem gems
87-
*/
88-
public ItemStack getGemsItem() {
89-
throw new IllegalPluginAccessException("API is not registered!");
90-
}
91-
9286
/**
9387
* Used to check if the player has enough gems
9488
*

0 commit comments

Comments
 (0)