mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
Banish all use of Optionals from Velocity entirely
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
package com.velocitypowered.api.plugin;
|
||||
|
||||
import java.util.Optional;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
/**
|
||||
* A wrapper around a plugin loaded by the proxy.
|
||||
@@ -26,7 +26,7 @@ public interface PluginContainer {
|
||||
*
|
||||
* @return the instance if available
|
||||
*/
|
||||
default Optional<?> instance() {
|
||||
return Optional.empty();
|
||||
default @Nullable Object instance() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user