Various improvements to the interface

More time units are supported, which makes long temporary durations more readable
Makes right-clicking a sign display a full description, and requires sneaking while clicking to perform the transaction
Makes signs only be destroyed when sneaking
Improves sign protection a bit, but improvements are required
Prevents a creative player breaking a sign from also interacting with it
This commit is contained in:
2022-01-17 18:42:15 +01:00
parent bec45ae968
commit 23c023a027
8 changed files with 228 additions and 23 deletions

View File

@ -33,6 +33,9 @@ import java.util.Queue;
import java.util.UUID;
import java.util.stream.Stream;
/**
* The main permissionsigns class
*/
public final class PermissionSigns extends JavaPlugin {
private static final Queue<SignCreationRequest> signCreationRequests = new PriorityQueue<>();
@ -131,6 +134,7 @@ public final class PermissionSigns extends JavaPlugin {
PluginDescriptionFile pluginDescriptionFile = this.getDescription();
pluginVersion = pluginDescriptionFile.getVersion();
//TODO: Allow for custom language files. Perhaps just look for strings.yml in the folder
//TODO: Display a notice in the console if a new version is available
FileConfiguration config = this.getConfig();
config.options().copyDefaults(true);