Skip to content

Commit

Permalink
Fix For 'GameDig' - Store Game Info Mod (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harley2787 authored Feb 27, 2024
1 parent 1917437 commit a7c7991
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions actions/game_server_MOD.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ module.exports = {
<option value="globaloperations">Global Operations (2002)</option>
<option value="ges">GoldenEye: Source (2010)</option>
<option value="gore">Gore: Ultimate Soldier (2002)</option>
<option value="fivem">Grand Theft Auto V - FiveM (2013)</option>
<option value="gta5f">Grand Theft Auto V - FiveM (2013)</option>
<option value="mtasa">Grand Theft Auto: San Andreas - Multi Theft Auto (2004)</option>
<option value="mtavc">Grand Theft Auto: Vice City - Multi Theft Auto (2002)</option>
<option value="groundbreach">Ground Breach (2018)</option>
Expand Down Expand Up @@ -413,12 +413,10 @@ module.exports = {
const ip = this.evalMessage(data.serverip, cache);
const port = this.evalMessage(data.serverport, cache);

const Mods = this.getMods();
const Gamedig = Mods.require('gamedig');
const { GameDig } = require('gamedig');

if (!ip) return console.log('Please provide Server IP & Port.');

Gamedig.query({
GameDig.query({
type: gametype,
host: ip,
port,
Expand Down

0 comments on commit a7c7991

Please sign in to comment.