Skip to content

Commit

Permalink
Merge pull request #20 from Dans-Plugins/feat/spigotmc-buttons
Browse files Browse the repository at this point in the history
SpigotMC Buttons
  • Loading branch information
dmccoystephenson authored Dec 16, 2023
2 parents 43137cb + 81691b1 commit df8b4f3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/PluginCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ interface PluginCardProps {
title: string
description: string
githubLink: string
spigotmcLink?: string
}

const PluginCard: React.FC<PluginCardProps> = ({ title, description, githubLink }) => (
const PluginCard: React.FC<PluginCardProps> = ({ title, description, githubLink, spigotmcLink }) => (
<Card
sx={{
height: '15rem',
Expand All @@ -33,6 +34,9 @@ const PluginCard: React.FC<PluginCardProps> = ({ title, description, githubLink
}}
>
<Button variant="contained" size="small" component={Link} href={githubLink}>GitHub</Button>
{
spigotmcLink ? <Button variant="contained" size="small" component={Link} href={spigotmcLink}>SpigotMC</Button> : null
}
</CardActions>
</Card>
)
Expand Down
25 changes: 25 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const ActivityTracker: React.FC = () => (
title="Activity Tracker"
description="Tracks the activity of players."
githubLink="https://github.com/Dans-Plugins/Activity-Tracker"
spigotmcLink="https://www.spigotmc.org/resources/activity-tracker.96724/"
/>
)

Expand All @@ -23,6 +24,7 @@ const AlternateAccountFinder: React.FC = () => (
title="Alternate Account Finder"
description="Identifies accounts that have used the same IP address."
githubLink="https://github.com/Dans-Plugins/AlternateAccountFinder"
spigotmcLink="https://www.spigotmc.org/resources/alternate-account-finder.83290/"
/>
)

Expand All @@ -31,6 +33,7 @@ const ConquestRecipes: React.FC = () => (
title="Conquest Recipes"
description="Adds recipes for the many item textures that the Conquest Resource Pack adds to the game."
githubLink="https://github.com/Dans-Plugins/Conquest-Recipes"
spigotmcLink="https://www.spigotmc.org/resources/conquest-recipes.83594/"
/>
)

Expand All @@ -39,6 +42,7 @@ const Currencies: React.FC = () => (
title="Currencies"
description="An expansion for Medieval Factions that allows faction owners to create and mint local currencies."
githubLink="https://github.com/Dans-Plugins/Currencies"
spigotmcLink="https://www.spigotmc.org/resources/currencies.96381/"
/>
)

Expand All @@ -47,6 +51,7 @@ const DansEssentials: React.FC = () => (
title="Dan's Essentials"
description="Provides miscellaneous commands."
githubLink="https://github.com/Dans-Plugins/Dans-Essentials"
spigotmcLink="https://www.spigotmc.org/resources/dans-essentials.80513/"
/>
)

Expand All @@ -55,6 +60,7 @@ const DansPluginManager: React.FC = () => (
title="Dan's Plugin Manager"
description="Allows operators to easily download the community's plugins in-game or through a server console."
githubLink="https://github.com/Dans-Plugins/Dans-Plugin-Manager"
spigotmcLink="https://www.spigotmc.org/resources/dans-plugin-manager-early-access.100279/"
/>
)

Expand All @@ -63,6 +69,7 @@ const DansSetHome: React.FC = () => (
title="Dan's Set Home"
description="Allows players to set and teleport to home locations."
githubLink="https://github.com/Dans-Plugins/Dans-Set-Home"
spigotmcLink="https://www.spigotmc.org/resources/dans-set-home.79986/"
/>
)

Expand All @@ -71,6 +78,7 @@ const DansSpawnSystem: React.FC = () => (
title="Dan's Spawn System"
description="Allows players to use signs to select a custom spawn in their world."
githubLink="https://github.com/Dans-Plugins/Dans-Spawn-System"
spigotmcLink="https://www.spigotmc.org/resources/dans-spawn-system.82697/"
/>
)

Expand All @@ -79,6 +87,7 @@ const Democracy: React.FC = () => (
title="Democracy"
description="An expansion for MF that aims to allow nations to be democratic."
githubLink="https://github.com/Dans-Plugins/Democracy"
// no spigotmc link yet
/>
)

Expand All @@ -87,6 +96,7 @@ const EasyLinks: React.FC = () => (
title="Easy Links"
description="Allows players to view relevant links with simple commands."
githubLink="https://github.com/Dans-Plugins/Easy-Links"
spigotmcLink="https://www.spigotmc.org/resources/easylinks-early-access.98040/"
/>
)

Expand All @@ -95,6 +105,7 @@ const Fiefs: React.FC = () => (
title="Fiefs"
description="Allows players to create fiefs and manage them."
githubLink="https://github.com/Dans-Plugins/Fiefs"
spigotmcLink="https://www.spigotmc.org/resources/fiefs-early-access.98559/"
/>
)

Expand All @@ -103,6 +114,7 @@ const FoodSpoilage: React.FC = () => (
title="FoodSpoilage"
description="Makes food items turn into rotten flesh after a certain period of time."
githubLink="https://github.com/Dans-Plugins/FoodSpoilage"
spigotmcLink="https://www.spigotmc.org/resources/food-spoilage.81507/"
/>
)

Expand All @@ -111,6 +123,7 @@ const KDRTracker: React.FC = () => (
title="KDRTracker"
description="Keeps track of players' kill/death ratios."
githubLink="https://github.com/Dans-Plugins/KDRTracker"
// no spigotmc link yet
/>
)

Expand All @@ -119,6 +132,7 @@ const Mailboxes: React.FC = () => (
title="Mailboxes"
description="Allows players and plugins to send persistent messages to players."
githubLink="https://github.com/Dans-Plugins/Mailboxes"
spigotmcLink="https://www.spigotmc.org/resources/mailboxes.96611/"
/>
)

Expand All @@ -127,6 +141,7 @@ const MedievalCookery: React.FC = () => (
title="Medieval Cookery"
description="Allows server owners to add cooking recipes for an enhanced roleplay experience."
githubLink="https://github.com/Dans-Plugins/Medieval-Cookery"
// no spigotmc link yet
/>
)

Expand All @@ -135,6 +150,7 @@ const MedievalEconomy: React.FC = () => (
title="Medieval Economy"
description="Provides a virtual coinpurse and a physical currency item for the purpose of simulating an economy."
githubLink="https://github.com/Dans-Plugins/Medieval-Economy"
spigotmcLink="https://www.spigotmc.org/resources/medieval-economy.81836/"
/>
)

Expand All @@ -143,6 +159,7 @@ const MedievalFactions: React.FC = () => (
title="Medieval Factions"
description="Allows players to organize themselves into feudal, diplomatic, lawful groups akin to nations."
githubLink="https://github.com/Dans-Plugins/Medieval-Factions"
spigotmcLink="https://www.spigotmc.org/resources/medieval-factions.79941/"
/>
)

Expand All @@ -151,6 +168,7 @@ const MedievalRoleplayEngine: React.FC = () => (
title="Medieval Roleplay Engine"
description="Facilitates roleplay between players."
githubLink="https://github.com/Dans-Plugins/Medieval-Roleplay-Engine"
spigotmcLink="https://www.spigotmc.org/resources/medieval-roleplay-engine.79993/"
/>
)

Expand All @@ -159,6 +177,7 @@ const MiniFactions: React.FC = () => (
title="MiniFactions"
description="Aims to introduce factions into the game in a simple, easy to use, expandable way."
githubLink="https://github.com/Dans-Plugins/MiniFactions"
// no spigotmc link yet
/>
)

Expand All @@ -167,6 +186,7 @@ const MoreRecipes: React.FC = () => (
title="More Recipes"
description="Adds static recipes for items that are not craftable in vanilla."
githubLink="https://github.com/Dans-Plugins/More-Recipes"
spigotmcLink="https://www.spigotmc.org/resources/more-recipes.81832/"
/>
)

Expand All @@ -175,6 +195,7 @@ const NetherAccessController: React.FC = () => (
title="Nether Access Controller"
description="Allows operators to control who has access to the nether."
githubLink="https://github.com/Dans-Plugins/Nether-Access-Controller"
spigotmcLink="https://www.spigotmc.org/resources/nether-access-controller.95905/"
/>
)

Expand All @@ -183,6 +204,7 @@ const NoMoreCreepers: React.FC = () => (
title="NoMoreCreepers"
description="Prevents creepers from spawning."
githubLink="https://github.com/Dans-Plugins/NoMoreCreepers"
spigotmcLink="https://www.spigotmc.org/resources/nomorecreepers.97946/"
/>
)

Expand All @@ -191,6 +213,7 @@ const PlayerLore: React.FC = () => (
title="PlayerLore"
description="Aims to allow players to add lore to their items in Minecraft."
githubLink="https://github.com/Dans-Plugins/PlayerLore"
spigotmcLink="https://www.spigotmc.org/resources/playerlore.98602/"
/>
)

Expand All @@ -199,6 +222,7 @@ const SimpleSkills: React.FC = () => (
title="SimpleSkills"
description="Introduces skills into the game in a systematic, easy to use, expandable way."
githubLink="https://github.com/Dans-Plugins/SimpleSkills"
spigotmcLink="https://www.spigotmc.org/resources/simpleskills.98039/"
/>
)

Expand All @@ -207,6 +231,7 @@ const WildPets: React.FC = () => (
title="Wild Pets"
description="Allows players to tame any entity and keep them as a pet."
githubLink="https://github.com/Dans-Plugins/Wild-Pets"
spigotmcLink="https://www.spigotmc.org/resources/wild-pets.95800/"
/>
)

Expand Down

0 comments on commit df8b4f3

Please sign in to comment.