This repository has been archived by the owner on Nov 3, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Blacklist module functionality.
The Blacklist module was poorly maintained, and there are much better solutions out there. We are there retiring the module, it does not really belong in an essentials like plugin. A migrator for ProtectionPerms is available, GP will come soon after they version bump. An API is available to get the old data. * Fix @scan scanner not being restricted to a specific Java package. Fixes #822
- Loading branch information
1 parent
b1ce87c
commit 7e668af
Showing
22 changed files
with
337 additions
and
826 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...n/java/io/github/nucleuspowered/nucleus/api/service/NucleusBlacklistMigrationService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file | ||
* at the root of this project for more details. | ||
*/ | ||
package io.github.nucleuspowered.nucleus.api.service; | ||
|
||
import org.spongepowered.api.block.BlockState; | ||
import org.spongepowered.api.item.ItemType; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* This service provides methods to support obtaining Nucleus' blacklist entries | ||
* for use by another plugin. | ||
*/ | ||
public interface NucleusBlacklistMigrationService { | ||
|
||
/** | ||
* Gets all the {@link BlockState}s that had a restriction on them. | ||
* | ||
* @return The {@link BlockState} and the results. | ||
*/ | ||
Map<BlockState, Result> getBlacklistedBlockstates(); | ||
|
||
/** | ||
* Gets all the {@link ItemType}s that had a restriction on them. | ||
* | ||
* @return The {@link ItemType}s and the results. | ||
*/ | ||
Map<ItemType, Result> getBlacklistedItemtypes(); | ||
|
||
interface Result { | ||
|
||
/** | ||
* If true, Nucleus blocked this type from being placed/broken. | ||
* | ||
* @return <code>true</code> if blacklisted | ||
*/ | ||
boolean environment(); | ||
|
||
/** | ||
* If true, Nucleus blocked this item type from being used. | ||
* | ||
* @return <code>true</code> if blacklisted | ||
*/ | ||
boolean use(); | ||
|
||
/** | ||
* If true, Nucleus blocked this item type from being possessed. | ||
* | ||
* @return <code>true</code> if blacklisted | ||
*/ | ||
boolean possession(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
...in/java/io/github/nucleuspowered/nucleus/modules/blacklist/commands/BlacklistCommand.java
This file was deleted.
Oops, something went wrong.
73 changes: 0 additions & 73 deletions
73
...ava/io/github/nucleuspowered/nucleus/modules/blacklist/commands/BlacklistListCommand.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.