Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 19:40:07 +01:00
36 Zeilen
1.5 KiB
Diff
36 Zeilen
1.5 KiB
Diff
|
From 6a9fd668688a25eb082d7757d15e4f25ed2970a4 Mon Sep 17 00:00:00 2001
|
||
|
From: Hudson <hudson@mydomain.com>
|
||
|
Date: Wed, 3 Apr 2013 02:16:56 -0500
|
||
|
Subject: [PATCH] Revert "Throw exception for disabled plugin tasks. Fixes BUKKIT-3951"
|
||
|
|
||
|
This reverts commit 052e955ed71a30516a5e9cfd76649daaba4ae7d8.
|
||
|
---
|
||
|
.../craftbukkit/scheduler/CraftScheduler.java | 4 ----
|
||
|
1 files changed, 0 insertions(+), 4 deletions(-)
|
||
|
|
||
|
diff --git a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
|
||
|
index a30f217..35badf3 100644
|
||
|
--- a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
|
||
|
+++ b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftScheduler.java
|
||
|
@@ -15,7 +15,6 @@ import java.util.concurrent.atomic.AtomicReference;
|
||
|
import java.util.logging.Level;
|
||
|
|
||
|
import org.apache.commons.lang.Validate;
|
||
|
-import org.bukkit.plugin.IllegalPluginAccessException;
|
||
|
import org.bukkit.plugin.Plugin;
|
||
|
import org.bukkit.scheduler.BukkitScheduler;
|
||
|
import org.bukkit.scheduler.BukkitTask;
|
||
|
@@ -390,9 +389,6 @@ public class CraftScheduler implements BukkitScheduler {
|
||
|
private static void validate(final Plugin plugin, final Object task) {
|
||
|
Validate.notNull(plugin, "Plugin cannot be null");
|
||
|
Validate.notNull(task, "Task cannot be null");
|
||
|
- if (!plugin.isEnabled()) {
|
||
|
- throw new IllegalPluginAccessException("Plugin attempted to register task while disabled");
|
||
|
- }
|
||
|
}
|
||
|
|
||
|
private int nextId() {
|
||
|
--
|
||
|
1.7.0.4
|
||
|
|