Skip to content

Commit 982a64b

Browse files
Merge branch 'dev'
# Conflicts: # README.md
2 parents 3e87c98 + 8a81828 commit 982a64b

File tree

16 files changed

+220
-131
lines changed

16 files changed

+220
-131
lines changed

InventoryRollbackPlus.iml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</content>
2626
<orderEntry type="inheritedJdk" />
2727
<orderEntry type="sourceFolder" forTests="false" />
28-
<orderEntry type="library" scope="PROVIDED" name="Maven: org.spigotmc:spigot-api:1.18-pre8-R0.1-SNAPSHOT" level="project" />
28+
<orderEntry type="library" scope="PROVIDED" name="Maven: org.spigotmc:spigot-api:1.18.1-R0.1-SNAPSHOT" level="project" />
2929
<orderEntry type="library" scope="PROVIDED" name="Maven: commons-lang:commons-lang:2.6" level="project" />
3030
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.guava:guava:31.0.1-jre" level="project" />
3131
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.guava:failureaccess:1.0.1" level="project" />
@@ -36,7 +36,7 @@
3636
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.j2objc:j2objc-annotations:1.3" level="project" />
3737
<orderEntry type="library" scope="PROVIDED" name="Maven: com.google.code.gson:gson:2.8.8" level="project" />
3838
<orderEntry type="library" scope="PROVIDED" name="Maven: net.md-5:bungeecord-chat:1.16-R0.4" level="project" />
39-
<orderEntry type="library" scope="PROVIDED" name="Maven: org.yaml:snakeyaml:1.28" level="project" />
39+
<orderEntry type="library" scope="PROVIDED" name="Maven: org.yaml:snakeyaml:1.30" level="project" />
4040
<orderEntry type="library" name="Maven: org.bstats:bstats-bukkit:2.2.1" level="project" />
4141
<orderEntry type="library" name="Maven: org.bstats:bstats-base:2.2.1" level="project" />
4242
<orderEntry type="library" name="Maven: io.papermc:paperlib:1.0.6" level="project" />

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
![](https://github.com/TechnicallyCoded/Inventory-Rollback/blob/master/icons/inventoryrollbackplus_icon_128.png?raw=true)
22
# InventoryRollbackPlus
33

4-
***WARNING***: This plugin is open source but NOT free to use as you wish. Read the [LICENSE](https://github.com/TechnicallyCoded/Inventory-Rollback/blob/main/LICENSE) before downloading this code.
5-
*(If I choose to stop maintaining this plugin, the LICENSE may change to allow further development, but that is not a guarantee and will not happen anytime soon since I am still actively developing this plugin)*
6-
74
### Introduction
85

96
**Description**
@@ -49,16 +46,21 @@ You can change these values in the configuration file.
4946

5047
**Permissions**
5148

49+
- inventoryrollback.viewbackups - (Default: OP) Allow /ir restore command (without ability to give items back)
5250
- inventoryrollback.restore - (Default: OP) Allow /ir restore command
51+
- inventoryrollback.restore.teleport - (Default: OP) Allow player to teleport to location of backup
5352
- inventoryrollback.forcebackup - (Default: OP) Allow /ir forcebackup command
5453
- inventoryrollback.enable - (Default: OP) Allow /ir enable command
5554
- inventoryrollback.disable - (Default: OP) Allow /ir disable command
5655
- inventoryrollback.reload - (Default: OP) Allow /ir reload command
56+
- inventoryrollback.adminalerts - (Default: OP) Allow viewing important information for admins when they join
5757

5858
- inventoryrollback.deathsave - (Default: All) Allow backup on death
5959
- inventoryrollback.joinsave - (Default: All) Allow backup on join
6060
- inventoryrollback.leavesave - (Default: All) Allow backup on leave
6161
- inventoryrollback.worldchangesave - (Default: All) Allow backup on world change
62+
- inventoryrollback.help - (Default: All) Allow viewing the help message of the plugin
63+
- inventoryrollback.version - (Default: All) Allow viewing version of the plugin
6264

6365
## Spigot Link
6466
[https://www.spigotmc.org/resources/85811/](https://www.spigotmc.org/resources/85811/)

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.nuclyon.technicallycoded.inventoryrollback</groupId>
66
<artifactId>InventoryRollbackPlus</artifactId>
7-
<version>1.6.5</version>
7+
<version>1.6.6</version>
88
<packaging>jar</packaging>
99
<name>InventoryRollbackPlus</name>
1010
<url>https://github.com/TechnicallyCoded/Inventory-Rollback-Plus/</url>
@@ -38,7 +38,7 @@
3838
<dependency>
3939
<groupId>org.spigotmc</groupId>
4040
<artifactId>spigot-api</artifactId>
41-
<version>1.18-pre8-R0.1-SNAPSHOT</version>
41+
<version>1.18.1-R0.1-SNAPSHOT</version>
4242
<scope>provided</scope>
4343
</dependency>
4444
<!-- bStats API -->

src/main/java/com/nuclyon/technicallycoded/inventoryrollback/commands/inventoryrollback/DisableSubCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public DisableSubCmd(InventoryRollbackPlus mainIn) {
1515

1616
@Override
1717
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
18-
if (sender.hasPermission("inventoryrollbackplus.disable") || sender.hasPermission("inventoryrollback.disable")) {
18+
if (sender.hasPermission("inventoryrollbackplus.disable")) {
1919
ConfigData.setEnabled(false);
2020
main.getConfigData().saveConfig();
2121

src/main/java/com/nuclyon/technicallycoded/inventoryrollback/commands/inventoryrollback/EnableSubCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public EnableSubCmd(InventoryRollbackPlus mainIn) {
1414

1515
@Override
1616
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
17-
if (sender.hasPermission("inventoryrollbackplus.enable") || sender.hasPermission("inventoryrollback.enable")) {
17+
if (sender.hasPermission("inventoryrollbackplus.enable")) {
1818
main.getConfigData().setEnabled(true);
1919
main.getConfigData().saveConfig();
2020

src/main/java/com/nuclyon/technicallycoded/inventoryrollback/commands/inventoryrollback/ForceBackupSubCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public ForceBackupSubCmd(InventoryRollbackPlus mainIn) {
1919

2020
@Override
2121
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
22-
if (sender.hasPermission("inventoryrollbackplus.forcebackup") || sender.hasPermission("inventoryrollback.forcebackup")) {
22+
if (sender.hasPermission("inventoryrollbackplus.forcebackup")) {
2323
if (args.length == 1 || args.length > 3) {
2424
sender.sendMessage(MessageData.getPluginPrefix() + MessageData.getError());
2525
return;

src/main/java/com/nuclyon/technicallycoded/inventoryrollback/commands/inventoryrollback/HelpSubCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public HelpSubCmd(InventoryRollbackPlus mainIn) {
1515

1616
@Override
1717
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
18-
if (sender.hasPermission("inventoryrollbackplus.help") || sender.hasPermission("inventoryrollback.help")) {
18+
if (sender.hasPermission("inventoryrollbackplus.help")) {
1919
this.sendHelp(sender);
2020
} else {
2121
sender.sendMessage(MessageData.getPluginPrefix() + MessageData.getNoPermission());

src/main/java/com/nuclyon/technicallycoded/inventoryrollback/commands/inventoryrollback/ReloadSubCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public ReloadSubCmd(InventoryRollbackPlus mainIn) {
1414

1515
@Override
1616
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
17-
if (sender.hasPermission("inventoryrollbackplus.reload") || sender.hasPermission("inventoryrollback.reload")) {
17+
if (sender.hasPermission("inventoryrollbackplus.reload")) {
1818
main.startupTasks();
1919

2020
sender.sendMessage(MessageData.getPluginPrefix() + MessageData.getPluginReload());

src/main/java/com/nuclyon/technicallycoded/inventoryrollback/commands/inventoryrollback/RestoreSubCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public RestoreSubCmd(InventoryRollbackPlus mainIn) {
2222
@Override
2323
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
2424
if (sender instanceof Player) {
25-
if (sender.hasPermission("inventoryrollbackplus.restore") || sender.hasPermission("inventoryrollback.restore")) {
25+
if (sender.hasPermission("inventoryrollbackplus.viewbackups")) {
2626
if (!ConfigData.isEnabled()) {
2727
sender.sendMessage(MessageData.getPluginPrefix() + MessageData.getPluginDisabled());
2828
return;

src/main/java/com/nuclyon/technicallycoded/inventoryrollback/commands/inventoryrollback/VersionSubCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public VersionSubCmd(InventoryRollbackPlus mainIn) {
1717
@Override
1818
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
1919
StringBuilder strb = new StringBuilder(MessageData.getPluginPrefix());
20-
boolean hasVersionPerm = sender.hasPermission("inventoryrollbackplus.version") || sender.hasPermission("inventoryrollback.version");
20+
boolean hasVersionPerm = sender.hasPermission("inventoryrollbackplus.version");
2121

2222
strb.append("\n")
2323
.append(ChatColor.WHITE)

0 commit comments

Comments
 (0)