Skip to content

Commit

Permalink
Moved Paper Core plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyzards committed May 27, 2022
1 parent fb89c73 commit a1028fd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/grubnest/game/core/PluginMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.google.common.io.ByteArrayDataInput;
import com.google.common.io.ByteArrayDataOutput;
import com.google.common.io.ByteStreams;
import com.grubnest.game.core.paper.GrubnestCorePlugin;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.messaging.PluginMessageListener;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.grubnest.game.core.databasehandler;

import com.grubnest.game.core.velocity.VelocityPlugin;
import com.velocitypowered.api.proxy.Player;
import org.bukkit.Bukkit;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

Expand All @@ -24,8 +21,6 @@ public MySQL(MySQLData data) {
super(data);
}

//You make method to fetch / add data in this class

/**
* Close pool on plugin Disable
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
package com.grubnest.game.core;
package com.grubnest.game.core.paper;

import com.grubnest.game.core.PluginMessage;
import com.grubnest.game.core.databasehandler.MySQL;
import com.grubnest.game.core.databasehandler.MySQLData;
import com.grubnest.game.core.databasehandler.utils.Disabler;
import org.bukkit.ChatColor;
import org.bukkit.plugin.java.JavaPlugin;
import org.yaml.snakeyaml.Yaml;

import java.io.InputStream;
import java.util.Map;

public class GrubnestCorePlugin extends JavaPlugin {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public VPlayer(Player player) {
this.player = player;
}

/**
* Updates the cached username of this player in the database
*/
public void updateUsername() {
VelocityPlugin.getInstance().getMySQL().updatePlayerUsername(this.player);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: GrubnestCore
main: com.grubnest.game.core.GrubnestCorePlugin
main: com.grubnest.game.core.paper.GrubnestCorePlugin
version: 1.0
authors:
- Theeef
Expand Down

0 comments on commit a1028fd

Please sign in to comment.