Skip to content

Commit

Permalink
Merge pull request #1 from zhinghu/bug
Browse files Browse the repository at this point in the history
emm
  • Loading branch information
myChinesePYL authored Aug 10, 2024
2 parents 1773a4b + 693e36b commit b3bcaab
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,7 @@ run/
.vscode/

# user
noUp.sh
noUp.sh
noUp.bat
noUp.vbs
noUp
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.shulng</groupId>
<artifactId>AntiCheatPlugin</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.0</version>
<packaging>jar</packaging>

<name>AntiCheatPlugin</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
import org.bukkit.plugin.java.JavaPlugin;

import cn.handyplus.lib.adapter.HandySchedulerUtil;
import org.shulng.antiCheatPlugin.move.fly;
import org.shulng.antiCheatPlugin.move.Fly;

public final class AntiCheatPlugin extends JavaPlugin {

@Override
public void onEnable() {
// Plugin startup logic
HandySchedulerUtil.init(this);
getServer().getPluginManager().registerEvents(new fly(), this);
getLogger().info("\033[38;2;60;255;0mAntiCheatPlugin 插件已启用!\033[0m");

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.event.Listener;

public class fly implements Listener {
public class Fly implements Listener {
public void onPlayerMove(PlayerMoveEvent event) {
var player = event.getPlayer();
var newLocation = event.getTo();
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/paper-plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: AntiCheatPlugin
version: '1.0-SNAPSHOT'
version: 0.0
main: org.shulng.antiCheatPlugin.AntiCheatPlugin
api-version: '1.20'
folia-supported: true
api-version: 1.20
folia-supported: true
5 changes: 5 additions & 0 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: AntiCheatPlugin
version: 0.0
main: org.shulng.antiCheatPlugin.AntiCheatPlugin
api-version: 1.20
folia-supported: true

0 comments on commit b3bcaab

Please sign in to comment.