Skip to content
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

Server.getTPS(); results in a NoSuchMethodError #60

Open
Timtendo12 opened this issue Jun 29, 2023 · 0 comments
Open

Server.getTPS(); results in a NoSuchMethodError #60

Timtendo12 opened this issue Jun 29, 2023 · 0 comments

Comments

@Timtendo12
Copy link

double[] tps = this.plugin.getServer().getTPS();

Any other methods on getServer() afaik work fine but getTPS() results in a error

org.bukkit.command.CommandException: Unhandled exception executing command 'tps' in plugin MineCraftBetaTest v1.0.0
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
	at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:162)
	at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:346)
	at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:736)
	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:701)
	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:694)
	at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
	at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
	at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
	at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:453)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
	at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getTPS()[D
	at nl.timtendo12.commands.TPSCommand.onCommand(TPSCommand.java:20)
	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
	... 12 more
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant