mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-01-14 03:21:27 +01:00
Merge branch 'development'
This commit is contained in:
commit
d0c79f0347
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "SongodaCore"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "2.3.30"
|
||||
version: "2.3.31"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -115,9 +115,9 @@
|
||||
</build>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot</artifactId>
|
||||
<version>1.15</version>
|
||||
<groupId>com.destroystokyo.papermc</groupId>
|
||||
<artifactId>paper</artifactId>
|
||||
<version>1.15.2</version>
|
||||
</dependency>
|
||||
<!--dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
|
@ -315,7 +315,7 @@ public class CommandManager implements CommandExecutor, TabCompleter {
|
||||
// If we're on Paper 1.8, we need to register timings (spigot creates timings on init, paper creates it on register)
|
||||
// later versions of paper create timings if needed when the command is executed
|
||||
if (ServerProject.isServer(ServerProject.PAPER, ServerProject.TACO) && ServerVersion.isServerVersionBelow(ServerVersion.V1_9)) {
|
||||
//commandObject.timings = co.aikar.timings.TimingsManager.getCommandTiming(plugin.getName().toLowerCase(), commandObject);
|
||||
commandObject.timings = co.aikar.timings.TimingsManager.getCommandTiming(plugin.getName().toLowerCase(), commandObject);
|
||||
}
|
||||
|
||||
// Set command action
|
||||
|
@ -87,6 +87,10 @@ public class ClientVersion {
|
||||
case 490:
|
||||
case 498:
|
||||
return ServerVersion.V1_14;
|
||||
case 573:
|
||||
case 575:
|
||||
case 578:
|
||||
return ServerVersion.V1_15;
|
||||
}
|
||||
return version > 498 ? ServerVersion.getServerVersion() : ServerVersion.UNKNOWN;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user