Add fid command
This commit is contained in:
parent
c645229cca
commit
f6892a691a
|
@ -21,6 +21,7 @@ import { myid } from "./general/myid";
|
|||
import { yeet } from "./inventory/yeet";
|
||||
import { tree } from "./fishing/tree";
|
||||
import { pick } from "./fishing/pick";
|
||||
import { fid } from "./util/fid";
|
||||
// import { give } from "./inventory/give";
|
||||
|
||||
interface ICommandGroup {
|
||||
|
@ -58,7 +59,7 @@ commandGroups.push(inventoryGroup);
|
|||
const utilGroup: ICommandGroup = {
|
||||
id: "util",
|
||||
displayName: "Utility",
|
||||
commands: [data, setcolor, memory, autofish, pokedex]
|
||||
commands: [data, setcolor, memory, autofish, pokedex, fid]
|
||||
};
|
||||
|
||||
commandGroups.push(utilGroup);
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
import Command from "@server/commands/Command";
|
||||
|
||||
export const fid = new Command(
|
||||
"fid",
|
||||
["fid"],
|
||||
"Get internal ID",
|
||||
"fid",
|
||||
"command.util.fid",
|
||||
async props => {
|
||||
return props.id;
|
||||
},
|
||||
false
|
||||
);
|
Loading…
Reference in New Issue