✧Galactic Series✧ | Galactic Tokens | Unique and optimized token & shop plugin! [1.8 - 1.12] | $15

Diz

⚔️ StellarDev ⚔️
Supreme
Feedback score
83
Posts
1,547
Reactions
1,656
Resources
34
UIurRhj.png


Galactic Tokens is a unique and optimized token shop plugin. Galactic Tokens allows your players to earn tokens and then in turn spend those tokens on items you add to the token shop. The Logging system in Galactic Tokens is very nice for large servers that need detailed reports of what each player is doing with their tokens.

Commands

/token ("View token related commands")
/token top ("View the token leaderboards")
/token received ("View tokens received leaderboard")
/token recalc ("Recalculate the token top")
/token balance ("View the token balance leaderboard")
/token balance "player" ("View player's balance")
/token balance "player" ("View a specific player's balance")
/token give "player" <amount> ("Give a player tokens")
/token giveitem "player" ("Give a player token item(s)")
/token logs "player" ("View a player's token shop logs")
/token pay "player" <amount> ("Pay a player tokens")
/token set "player" <amount> ("Set a player's token balance")
/token take "player" <amount> ("Take tokens from a player")
/token withdraw "player" <amount> ("Withdraw tokens to physical items")
/token shop ("Open the token shop")

Permissions

galactictokens.admin
tokenshop.admin

Configuration Files

Code:
{
  "msgCannotAfford": "&6&lTOKENS &8» &cYou cannot afford to make this purchase.",
  "msgLimitReached": "&6&lTOKENS &8» &cYou cannot purchase that item any more.",
  "msgShopPurchase": "&6&lTOKENS &8» &e%s&f just purchased a &e%s&f.",
  "msgBalance": "&6&lTOKENS &8» &e%s&f currently %s &e%s&f tokens.",
  "msgTokenTakeSender": "&6&lTOKENS &8» &fYou have just taken &e%s&f token(s) from &e%s&f.",
  "msgTokenTakeReceiver": "&6&lTOKENS &8» &e%s&f token(s) have been taken from your account.",
  "msgTokenSetSender": "&6&lTOKENS &8» &fYou have just set &e%s&f's token balance to &e%s&f.",
  "msgTokenSetReceiver": "&6&lTOKENS &8» &fYour token balance was just set to &e%s&f.",
  "msgTokenGiveSender": "&6&lTOKENS &8» &fYou have just given &e%s %sx&f token(s).",
  "msgTokenGiveReceiver": "&6&lTOKENS &8» &fYou have just received &e%sx&f token(s).",
  "msgTokenPayDisabled": "&6&lTOKENS &8» &cToken pay has been disabled.",
  "msgTokenNotEnough": "&6&lTOKENS &8» &cYou do not have enough tokens to pay that player.",
  "msgTokenPaySelf": "&6&lTOKENS &8» &cYou cannot pay yourself tokens.",
  "msgTokenPaidSender": "&6&lTOKENS &8» &fYou have just paid &e%s %sx&f token(s).",
  "msgTokenPaidReceived": "&6&lTOKENS &8» &fYou have received &e%sx&f token(s) from &e%s&f.",
  "msgTokenWithdrawNotEnough": "&6&lTOKENS &8» &cYou do not have enough tokens to withdraw that amount.",
  "msgTokenWithdrawn": "&6&lTOKENS &8» &cYou have just withdrawn &f%sx&f token(s).",
  "msgTokenRedeemed": "&6&lTOKENS &8» &fYou have just redeemed &e%sx&f token(s).",
  "msgTokenGiven": "&6&lTOKENS &8» &fYou have just given &e%s %sx %s&f token item(s).",
  "rewardCycleAnnouncement": [
    " ",
    "&6&l[!] &e&lALERT &6&l[!]",
    "&fThe Token Shop Rewards have just been cycled.",
    " "
  ],
  "tokenTopRefreshMs": 300000,
  "tokenShopLogLimit": 50,
  "sendReceiverGiveMessage": false,
  "blocksDropTokens": false,
  "entitiesDropTokens": false,
  "tokenPayEnabled": true,
  "tokenItemWrapper": {
    "material": "GOLD_INGOT",
    "damage": 0,
    "amount": 1,
    "meta": {
      "displayName": "&6&lTokens &8&l(&f&l+{amount}&8&l)",
      "lore": [
        "&7Right click this to redeem",
        "&7the tokens into your balance."
      ]
    }
  },
  "tokenCommandAliases": [
    "token"
  ],
  "tokenShopCommandAliases": [
    "tokenshop"
  ],
  "blockTokenDrops": {
    "COAL_ORE": {
      "chance": 100.0,
      "amount": 1
    },
    "IRON_ORE": {
      "chance": 100.0,
      "amount": 1
    },
    "GOLD_ORE": {
      "chance": 100.0,
      "amount": 1
    },
    "LAPIS_ORE": {
      "chance": 100.0,
      "amount": 1
    },
    "REDSTONE_ORE": {
      "chance": 100.0,
      "amount": 1
    },
    "DIAMOND_ORE": {
      "chance": 100.0,
      "amount": 1
    },
    "EMERALD_ORE": {
      "chance": 100.0,
      "amount": 1
    },
    "CROPS": {
      "chance": 100.0,
      "amount": 1
    },
    "SUGAR_CANE_BLOCK": {
      "chance": 100.0,
      "amount": 1
    },
    "CACTUS": {
      "chance": 100.0,
      "amount": 1
    },
    "CARROT": {
      "chance": 100.0,
      "amount": 1
    },
    "POTATO": {
      "chance": 100.0,
      "amount": 1
    },
    "PUMPKIN": {
      "chance": 100.0,
      "amount": 1
    },
    "MELON_BLOCK": {
      "chance": 100.0,
      "amount": 1
    }
  },
  "entitiesTokenDrops": {
    "COW": {
      "chance": 100.0,
      "amount": 1
    },
    "SHEEP": {
      "chance": 100.0,
      "amount": 1
    },
    "SPIDER": {
      "chance": 100.0,
      "amount": 1
    },
    "ZOMBIE": {
      "chance": 100.0,
      "amount": 1
    },
    "SKELETON": {
      "chance": 100.0,
      "amount": 1
    },
    "BLAZE": {
      "chance": 100.0,
      "amount": 1
    },
    "WITCH": {
      "chance": 100.0,
      "amount": 1
    },
    "IRON_GOLEM": {
      "chance": 100.0,
      "amount": 1
    },
    "VILLAGER": {
      "chance": 100.0,
      "amount": 1
    }
  },
  "tokenTopObtainedGui": {
    "items": {
      "#": {
        "material": "STAINED_GLASS_PANE",
        "damage": 11,
        "amount": 1,
        "meta": {
          "displayName": "&r"
        }
      },
      "@": {
        "material": "STAINED_GLASS_PANE",
        "damage": 3,
        "amount": 1,
        "meta": {
          "displayName": "&r"
        }
      },
      "%": {
        "material": "STAINED_GLASS_PANE",
        "damage": 7,
        "amount": 1,
        "meta": {
          "displayName": "&r"
        }
      },
      "-": {
        "material": "AIR",
        "damage": 0,
        "amount": 1
      }
    },
    "pattern": [
      "#@%%-%%@#",
      "@%%%%%%%@",
      "%%-----%%",
      "%%-----%%",
      "@%%%%%%%@",
      "#@%%%%%@#"
    ],
    "title": "&8Token Top Obtained"
  },
  "tokenTopObtainedActionButtons": [
    {
      "action": "PLAYER",
      "slot": 4
    },
    {
      "displayItem": {
        "material": "PAPER",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&ePrevious Page"
        }
      },
      "action": "PREVIOUS_PAGE",
      "slot": 48
    },
    {
      "displayItem": {
        "material": "COMPASS",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&eCurrent Page",
          "lore": [
            "&7Page {page}"
          ]
        }
      },
      "action": "CURRENT_PAGE",
      "slot": 49
    },
    {
      "displayItem": {
        "material": "PAPER",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&eNext Page"
        }
      },
      "action": "NEXT_PAGE",
      "slot": 50
    }
  ],
  "tokenTopObtainedPlayerName": "&3&l{player}",
  "tokenTopObtainedPlayerLore": [
    " ",
    "&7Place: &b#{position}",
    "&7Total Obtained: &f{balance}",
    " "
  ],
  "tokenTopBalanceGui": {
    "items": {
      "#": {
        "material": "STAINED_GLASS_PANE",
        "damage": 11,
        "amount": 1,
        "meta": {
          "displayName": "&r"
        }
      },
      "@": {
        "material": "STAINED_GLASS_PANE",
        "damage": 3,
        "amount": 1,
        "meta": {
          "displayName": "&r"
        }
      },
      "%": {
        "material": "STAINED_GLASS_PANE",
        "damage": 7,
        "amount": 1,
        "meta": {
          "displayName": "&r"
        }
      },
      "-": {
        "material": "AIR",
        "damage": 0,
        "amount": 1
      }
    },
    "pattern": [
      "#@%%-%%@#",
      "@%%%%%%%@",
      "%%-----%%",
      "%%-----%%",
      "@%%%%%%%@",
      "#@%%%%%@#"
    ],
    "title": "&8Token Top Balance"
  },
  "tokenTopBalanceActionButtons": [
    {
      "action": "PLAYER",
      "slot": 4
    },
    {
      "displayItem": {
        "material": "PAPER",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&ePrevious Page"
        }
      },
      "action": "PREVIOUS_PAGE",
      "slot": 48
    },
    {
      "displayItem": {
        "material": "COMPASS",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&eCurrent Page",
          "lore": [
            "&7Page {page}"
          ]
        }
      },
      "action": "CURRENT_PAGE",
      "slot": 49
    },
    {
      "displayItem": {
        "material": "PAPER",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&eNext Page"
        }
      },
      "action": "NEXT_PAGE",
      "slot": 50
    }
  ],
  "tokenTopBalancePlayerName": "&3&l{player}",
  "tokenTopBalancePlayerLore": [
    " ",
    "&7Place: &b#{position}",
    "&7Balance: &f{balance}",
    " "
  ]
}
Code:
{
  "broadcastShopPurchase": true,
  "cycleRewards": false,
  "rewardsToShowPerCycle": 14,
  "tokenShopCyclePeriodMs": 43200000,
  "announceRewardCycle": false,
  "resetPurchaseRestrictionsOnCycle": true,
  "restrictionMetDisplay": [
    "&cYou cannot purchase this item anymore",
    "&cas you have met your purchase limit."
  ],
  "tokenShopItems": [
    {
      "purchaseRestrictions": -1,
      "shopItemId": 1,
      "commandsToExecute": [
        "scroll give {player} Common 1"
      ],
      "displayItem": {
        "material": "EMPTY_MAP",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&f&lCommon Scroll",
          "lore": [
            "{restriction}",
            " ",
            "&7Scrolls are used to obtain",
            "&7custom items on the server by",
            "&7completing a challenge.",
            " ",
            "&3&lCost: &f{cost}"
          ]
        }
      },
      "weight": 25.0,
      "cost": 2000
    },
    {
      "purchaseRestrictions": -1,
      "shopItemId": 2,
      "commandsToExecute": [
        "scroll give {player} Uncommon 1"
      ],
      "displayItem": {
        "material": "EMPTY_MAP",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&a&lUncommon Scroll",
          "lore": [
            "{restriction}",
            " ",
            "&7Scrolls are used to obtain",
            "&7custom items on the server by",
            "&7completing a challenge.",
            " ",
            "&3&lCost: &f{cost}"
          ]
        }
      },
      "weight": 25.0,
      "cost": 4000
    },
    {
      "purchaseRestrictions": -1,
      "shopItemId": 3,
      "commandsToExecute": [
        "scroll give {player} Rare 1"
      ],
      "displayItem": {
        "material": "EMPTY_MAP",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&b&lRare Scroll",
          "lore": [
            "{restriction}",
            " ",
            "&7Scrolls are used to obtain",
            "&7custom items on the server by",
            "&7completing a challenge.",
            " ",
            "&3&lCost: &f{cost}"
          ]
        }
      },
      "weight": 25.0,
      "cost": 8000
    },
    {
      "purchaseRestrictions": -1,
      "shopItemId": 4,
      "commandsToExecute": [
        "scroll give {player} Legendary 1"
      ],
      "displayItem": {
        "material": "EMPTY_MAP",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&6&lLegendary Scroll",
          "lore": [
            "{restriction}",
            " ",
            "&7Scrolls are used to obtain",
            "&7custom items on the server by",
            "&7completing a challenge.",
            " ",
            "&b&lCost: &f{cost}"
          ]
        }
      },
      "weight": 25.0,
      "cost": 15000
    }
  ],
  "tokenShopGui": {
    "items": {
      "#": {
        "material": "STAINED_GLASS_PANE",
        "damage": 7,
        "amount": 1,
        "meta": {
          "displayName": "&r"
        }
      },
      "-": {
        "material": "AIR",
        "damage": 0,
        "amount": 1
      }
    },
    "pattern": [
      "#-------#",
      "#-------#",
      "#-------#",
      "#-------#",
      "#-------#",
      "#########"
    ],
    "title": "&8Token Shop"
  },
  "tokenShopActionButtons": [
    {
      "displayItem": {
        "material": "PAPER",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&ePrevious Page"
        }
      },
      "action": "PREVIOUS_PAGE",
      "slot": 48
    },
    {
      "displayItem": {
        "material": "COMPASS",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&eCurrent Page",
          "lore": [
            "&7Page {page}"
          ]
        }
      },
      "action": "CURRENT_PAGE",
      "slot": 49
    },
    {
      "displayItem": {
        "material": "PAPER",
        "damage": 0,
        "amount": 1,
        "meta": {
          "displayName": "&eNext Page"
        }
      },
      "action": "NEXT_PAGE",
      "slot": 50
    }
  ]
}


Dependencies: GalacticLib & MassiveCore

Wiki: https://galactic.stellardev.org/tokens/description
If you have additional questions or need support join our discord and we would be happy to get you squared away!​
 
Type
Offering
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Diz

⚔️ StellarDev ⚔️
Supreme
Feedback score
83
Posts
1,547
Reactions
1,656
Resources
34
Update Log:

- Main release

- Added a {balance} placeholder into the shop GUI

- Added Token items
- Added a way to withdraw Tokens
- Implemented hooks to GalacticTools
- Implemented hooks to GalacticStacker

- Fixed issues with Tokens not being able to be claimed

- Added a new placeholder to get the token balance of a player but formatted - %galactictokens_amount_formatted%

- Fixed issue where token boosters weren't applying
- Implemented backup token gain system to handle mob deaths when GalacticStacker isn't present

- Updated license servers
 
Last edited:
Top