-
-
Notifications
You must be signed in to change notification settings - Fork 628
WorldGuard-Folia #2060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WorldGuard-Folia #2060
Changes from 2 commits
ea6a2d3
50e4f4a
b658d97
6edbb60
1368238
c41f279
17a0d9d
65431c7
d9424b1
6f5501f
d6ef5e9
8b7729e
ead1e1b
27f0095
2bd426b
7783e9a
6898ad8
887f3bf
8aa37e3
8329879
a5ea511
af645ea
b269d7e
1bfae45
a801a9d
fa357f4
c6fbfb8
5749210
ca49458
16ea462
8ffc81a
0de567d
7a0458d
76c9092
aa46529
70d225e
2ea5068
b73a0a7
afb619d
9dd7d7c
679b569
0f3ea50
cb011a8
068ad68
fb88d56
03aac83
830472d
829a4a4
02dc89b
a0e397e
d9716a5
92adfa9
3b9ab47
5579d19
764d258
af8b023
1a59d1e
2f13ae0
7ae07a9
b1c0eb4
89b6bdc
b08da82
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| group=com.sk89q.worldguard | ||
| version=7.1.0-SNAPSHOT | ||
| version=7.1.0-SNAPSHOT-Custom-Folia | ||
|
Yomamaeatstoes marked this conversation as resolved.
Outdated
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ | |
| import com.google.common.cache.CacheLoader; | ||
| import com.google.common.cache.LoadingCache; | ||
| import com.sk89q.worldedit.util.report.DataReport; | ||
| import com.sk89q.worldguard.bukkit.WorldGuardPlugin; | ||
| import org.bukkit.Bukkit; | ||
| import org.bukkit.scheduler.BukkitTask; | ||
|
|
||
|
|
@@ -52,19 +53,22 @@ public Optional<Field> load(Class<?> clazz) throws Exception { | |
| public SchedulerReport() { | ||
| super("Scheduler"); | ||
|
|
||
| List<BukkitTask> tasks = Bukkit.getServer().getScheduler().getPendingTasks(); | ||
| append("Error", "MODDED FOLIA VERSION - DO NOT REPORT TO WORLDGUARD"); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That looks like it's not finished yet? Please don't remove the whole report.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whoops, sorry about that. Originally I wasn’t intending to PR it so I put a comment there so people wouldn’t spam you guys if they found my fork. It seems I forgot to remove that comment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having looked closer into this, until TechnicallyCoded adds a method to getAllWrappedTasks either active or pending. I will contact him as he is a work colleague. |
||
|
|
||
| append("Pending Task Count", tasks.size()); | ||
|
|
||
| for (BukkitTask task : tasks) { | ||
| Class<?> taskClass = getTaskClass(task); | ||
|
|
||
| DataReport report = new DataReport("Task: #" + task.getTaskId()); | ||
| report.append("Owner", task.getOwner().getName()); | ||
| report.append("Runnable", taskClass != null ? taskClass.getName() : "<Unknown>"); | ||
| report.append("Synchronous?", task.isSync()); | ||
| append(report.getTitle(), report); | ||
| } | ||
| // List<BukkitTask> tasks = Bukkit.getServer().getScheduler().getPendingTasks(); | ||
| //// WorldGuardPlugin.inst().foliaLib.getImpl(). | ||
| // | ||
| // append("Pending Task Count", tasks.size()); | ||
| // | ||
| // for (BukkitTask task : tasks) { | ||
| // Class<?> taskClass = getTaskClass(task); | ||
| // | ||
| // DataReport report = new DataReport("Task: #" + task.getTaskId()); | ||
| // report.append("Owner", task.getOwner().getName()); | ||
| // report.append("Runnable", taskClass != null ? taskClass.getName() : "<Unknown>"); | ||
| // report.append("Synchronous?", task.isSync()); | ||
| // append(report.getTitle(), report); | ||
| // } | ||
| } | ||
|
|
||
| @SuppressWarnings("unchecked") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as in WorldEdit:
EngineHub/WorldEdit#2462 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heyy @Joo200 I have updated it. What do you think of it now?