Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- FILE menues.lua
- -- Contains all the menu information
- -- System includes
- local menu = require("menu")
- local button = require("button")
- local menues = {}
- -- Some info about the screen size
- local scx, scy = require("component").gpu.getResolution()
- local btnx = scx-13
- -- These are button groups
- -- button.new(text, menu,x,y,width,hight)
- local MainButtons = {
- button.new("Home", "Home", btnx,4,12,1),
- button.new("Info", "Info", btnx,6,12,1),
- button.new("Rules", "Rules1", btnx,8,12,1),
- button.new("Help", "Help",btnx,10,12,1),
- button.new("Servers","Servers",btnx,12,12,1)
- }
- local InfoButtons = {
- button.new("Info", "Info", btnx,2,12,1),
- --button.new("Claims", "Claims1", btnx,4,12,1),
- button.new("Economy", "Economy", btnx,6,12,1),
- button.new("Forum", "Forum",btnx,8,12,1),
- button.new("Ranks","Ranks",btnx,10,12,1),
- button.new("Donation","Donation",btnx,12,12,1),
- --button.new("Restricted","Restricted1",btnx,14,12,1)
- }
- local ClaimButtons = {
- button.new("General", "Claims1", btnx,6,12,1),
- button.new("Commands", "Claims2", btnx,8,12,1),
- button.new("Claiming", "Claims3", btnx,10,12,1)
- }
- local RanksButtons = {
- button.new("Ranks", "Ranks", btnx,6,12,1),
- button.new("Donator", "Donors", btnx,8,12,1),
- button.new("Staff", "Staff", btnx,10,12,1)
- }
- local RestrictedButtons = {
- button.new("Page 1", "Restricted1", btnx,4,12,1),
- button.new("Page 2", "Restricted2", btnx,6,12,1),
- button.new("Page 3", "Restricted3", btnx,8,12,1),
- button.new("Page 4", "Restricted4", btnx,10,12,1),
- button.new("Page 5", "Restricted5", btnx,12,12,1),
- }
- local RulesButtons = {
- button.new("Page 1", "Rules1", btnx,6,12,1),
- button.new("Page 2", "Rules2", btnx,8,12,1),
- button.new("Page 3", "Rules3", btnx,10,12,1)
- }
- local ServerButtons = {
- button.new("Servers", "Servers", btnx,4,12,1),
- button.new("Network", "Network", btnx,6,12,1),
- button.new("Direwolf20", "Direwolf20", btnx,8,12,1),
- button.new("Tekkit", "Tekkit",btnx,10,12,1),
- button.new("Infinity","Infinity",btnx,12,12,1),
- button.new("Skyfactory","Skyfactory",btnx,14,12,1)
- }
- -- This is the text that is displayed in each menu
- -- Just an array of strings, each string is a line
- -- To leave a line empty use " ", not ""!
- -- Supports color codes like &4. Default color is &9
- local InfoText = {
- "In this section you can find information",
- "about most of the server's main features. If",
- "you still have any more questions feel free",
- "to ask any staff member for help or create a",
- "post on our forum"
- }
- local Claims1Text = {
- "The server uses claims to prevent griefing,",
- "stealing, and unwanted pvp.",
- "To create a claim click with a golden shovel",
- "at the 2 corners of the area you want to",
- "claim",
- "Claims extend from the lowest place the",
- "player has built to the maximum building",
- "hight. To leave a claim use the command",
- "&c/abandonclaim"
- }
- local Claims2Text = {
- "To add someone to your claim use the command",
- "&c/trust <name>",
- "To remove someone from your claim use the",
- "command &c/untrust <name>",
- "To give someone access to interact with",
- "containers use the command",
- "&c/containertrust <name>",
- "To give someone access to interact with",
- "blocks use the command",
- "&c/accesstrust <name>",
- "To display a list of trusted players use",
- "the command &c/trustlist"
- }
- local Claims3Text = {
- "Each player has a set amount of available",
- "claim blocks which is the maximum size",
- "of his claim. You get more claim blocks",
- "simply by being online or by voting and",
- "daily rewards",
- "To display a list of all your claims",
- "use the command &c/claimlist"
- }
- local EconomyText = {
- "The server uses a standard currency system",
- "You can check the amount of money you have",
- "Using the command &c/bal&9 ",
- "You can gain money either by voting or by",
- "Selling items at the Market",
- "You can use money to claim land or to buy",
- "Items"
- }
- local ForumText = {
- "Have any suggestions? Need support but there",
- "are no staff members online? Make a post on",
- "our great forum. The forum is online all the",
- "time and is viewed frequently by our best",
- "staff members.",
- " ",
- "&cforum.craftersland.net"
- }
- local DonationText = {
- "Do you like our server and want to help us",
- "keep it running, or just want to get some",
- "new perks? Donate some money on our",
- "&cbuycraft&9 web page and get the perk you",
- "always dreamed about",
- " ",
- "&ccraftersland.buycraft.net"
- }
- local RankText = {
- "On our beloved server you would find 2",
- "special types of players:",
- " - Staff members",
- " - Donators",
- "These players have special commands",
- "and perks"
- }
- local DonorText = {
- "Donator ranks are ranks that are obtainable",
- "By donating money on our buycraft web page",
- "Currently available ranks:",
- " - &3VIP&r (€4.99)",
- " - &9Premium&r (€9.99)",
- " - &9Premium+&r (€29.99)",
- " - &6Sponsor&r (€49.99)",
- " - &6Sponsor+&r (€69.99)",
- "For more information about the ranks visit",
- "our web store: &ccraftersland.buycraft.net"
- }
- local StaffText = {
- "The staff members are players who were",
- "chosen and given some special perks to",
- "help other players with their problems,",
- "and help us monitor the server",
- "The ranks are: (in privelage order)",
- "&bHelper&r, &dJudge&r, &5Moderator&r, &cAdmin&r, &4GM",
- "When new helpers are needed the helper",
- "applications on our forum are opened",
- "and anyone can apply to join our staff"
- }
- local Restricted1Text = {
- "&cThe following items are restricted:",
- "Simple Inventory Sorting (Entire Mod)",
- "Creative ME Storage Cell",
- " (Applied Energistics)",
- "Auto-Breaker (Actually Additions)",
- "Long-Range Breakers (Actually Additions)",
- "Player Probe (Actually Additions)",
- "Lens of the Killer (Actually Additions)",
- "Lens of certain Death (Actually Additions)",
- "Rod of the Hells (Botania)",
- "&cFor the latest updates please",
- "&cvisit our forum"
- }
- local Restricted2Text = {
- "&cThe following items are restricted:",
- "Imperfect Ritual Stone (Blood Magic)",
- "Rod of the shaded Mesa (Botania)",
- "Rod of Terra Firma (Botania)",
- "Manastorm Charge (Botania)",
- "Hand of Ender (Botania)",
- "Shard of Laputa (Botania)",
- "Teru Teru Bozu (Botania)",
- "Celestial Manipulator (Draconic Evolution)",
- "Weather Obelisk (EnderIO)",
- "&cFor the latest updates please",
- "&cvisit our forum"
- }
- local Restricted3Text = {
- "&cThe following items are restricted:",
- "Magic Boomerang (Extra Utilities)",
- "Creative Drum (Extra Utilities)",
- "Creative Harvest (Extra Utilities)",
- "Creative Chest (Extra Utilities)",
- "Creative Builder's Wand (Extra Utilities)",
- "RainMaker (Forestry)",
- "Firestone Ore (Railcraft)",
- "Raw Firestone (Railcraft)",
- "Cut Firestone (Railcraft)",
- "&cFor the latest updates please",
- "&cvisit our forum"
- }
- local Restricted4Text = {
- "&cThe following items are restricted:",
- "Cracked Firestone (Railcraft",
- "Creative Screen (RFTools)",
- "Creative Storage Disk (Refined Storage)",
- "Creative Fluid Storage Disk",
- " (Refined Storage)",
- "Creative Vending Upgrade (Storage Drawers)",
- "EFLN (Tinker's Construct)",
- "Builders Wand (Extra Utilities)",
- "Chunk Loader Upgrade (Open Computers)",
- "&cFor the latest updates please",
- "&cvisit our forum"
- }
- local Restricted5Text = {
- "&cThe following items are restricted:",
- "Builder Block [Overworld only] (RfTools)",
- "Industrial TNT (Industrial Craft 2)",
- "Nuke (Industrial Craft 2)",
- " ",
- " ",
- " ",
- " ",
- " ",
- " ",
- "&cFor the latest updates please",
- "&cvisit our forum",
- }
- local Rules1 = {
- "&c[1]&r No hacked clients",
- "&c[2]&r No bug abuse/exploiting bugs",
- "&c[3]&r No Advertising",
- "&c[4]&r No sale/gifting creative/illegitimate",
- " &ritems to members outside of your town",
- "&c[5]&r No PvPing with creative, god, fly or",
- " &roverpowered spawned items",
- "&c[6]&r No using opencomputers in any way that",
- " &rmight harm players or track other players",
- "&c[7]&r No excessive use of profanity,",
- " &rswearing or caps"
- }
- local Rules2 = {
- "&c[8]&r No griefing any protected territory",
- "&c[9]&r No insulting staff members",
- "&c[10]&r No selling server items for real",
- " &rlife money or goods",
- "&c[11]&r No abuse of magic",
- "&c[12]&r No threats of or intentional harm",
- " &rto server integrity",
- "&c[13]&r No racist slurs/text/content",
- "&c[14]&r No scamming",
- "&c[15]&r No harassing staff or other players",
- "&c[16]&r No impersonating staff members"
- }
- local Rules3 = {
- "&c[17]&r No console clients",
- "&c[18]&r No ban evading",
- "&c[19]&r No explaining or exposing of dupe,",
- " &rbug or glitch methods",
- "&c[20]&r Use common sense. If you have abused",
- " &ra loop hole in our rules, the",
- " &rpunishment would be decided by the",
- " &rsenior staff members and managers",
- " ",
- "&cFor further explenations and clarifications",
- "&cplease visit our forum page"
- }
- local HelpText = {
- "&cNeed help?",
- "Check the \"Info\" section on this monitor",
- "&cStill need help?",
- "Ask any online staff member for help",
- "&cNo staff members online?",
- "Go to our forum and post your issue there.",
- "A staff member will look at the post and",
- "will help you as soon as possible",
- " ",
- "&cforum.craftersland.net"
- }
- local ServersText = {
- "Craftersland currently runs 7 servers:",
- " - Network (Vanilla)",
- " - Gregtech: New Horizons &9(&cYou are here!&9)&r",
- " - Direwolf20 1.7.10",
- " - Direwolf20 1.12.2",
- " - Tekkit",
- " - Infinity Evolved",
- " - SkyFactory 2",
- " - Skyfactory 3",
- " - Skyfactory 4",
- " - Interactions &9(&cThe Best Pack!&9)&r"
- }
- local NetworkText = {
- "A pure, vanilla, unmodded server.",
- "Survival, Custom minigames, Even a remake",
- "of Assassins Creed in minecraft!",
- " ",
- "Non-Premium IP:",
- "&cmc.craftersland.net:25565",
- "Premium IP:",
- "&cplay.craftersland.eu:25565",
- "&cplay.craftersland.us:25565"
- }
- local Direwolf20Text = {
- "Magic, Tech, Random mods that have",
- "nothing to do with each other, All",
- "mixed together in this one massive",
- "modpack",
- " ",
- "Server IPs:",
- "Direwolf20 1.7.10:",
- " &cftb.craftersland.net:25565",
- " ",
- "Direwolf20 1.12:",
- " &cdw20.craftersland.net:25565"
- }
- local TekkitText = {
- "Ever wanted to fly to the moon or",
- "Build awesome high tech bases?",
- "Well, now you can on our awesome",
- "Tekkit server",
- " ",
- "Server IP:",
- "&ctekkit.craftersland.net:25667"
- }
- local InfinityText = {
- "Ever wondered how a modded server on",
- "steroids looks? Well, wonder no longer",
- "and join us on our expert mode infinity",
- "evolved server!",
- " ",
- "Server IP:",
- "&cinf.craftersland.net:25565"
- }
- local SkyfactoryText = {
- "Is skyblock too easy for you? Then we",
- "challenge you to try our SkyFactory ",
- "servers! Modded skyblock servers with",
- "an epic and unique gameplay",
- " ",
- "Server IPs:",
- "Skyfactory 2.5:",
- " &cskyfactory.craftersland.net:25565 ",
- " ",
- "Skyfactory 3:",
- " &csf3.craftersland.net:25565"
- }
- -- All of the menues
- -- menu.new(name, title, text, button_group)
- Home = menu.new("Home", "Welcome to the Craftersland's",{},MainButtons)
- Info = menu.new("Info", "Information",InfoText,InfoButtons)
- Claims1 = menu.new("Claims1", "Claims - General",Claims1Text,ClaimButtons)
- Claims2 = menu.new("Claims2", "Claims - Commands",Claims2Text,ClaimButtons)
- Claims3 = menu.new("Claims3", "Claims - Claim Blocks",Claims3Text,ClaimButtons)
- Economy = menu.new("Economy", "Server Economy",EconomyText,InfoButtons)
- Forum = menu.new("Forum", "Craftersland Forum",ForumText,InfoButtons)
- Donation = menu.new("Donation", "Donations",DonationText,InfoButtons)
- Ranks = menu.new("Ranks", "Ranks",RankText,RanksButtons)
- Donors = menu.new("Donors", "Donator Ranks",DonorText,RanksButtons)
- Staff = menu.new("Staff", "Staff Ranks",StaffText,RanksButtons)
- Restricted1 = menu.new("Restricted1","Restricted Items",Restricted1Text,RestrictedButtons)
- Restricted2 = menu.new("Restricted2","Restricted Items",Restricted2Text,RestrictedButtons)
- Restricted3 = menu.new("Restricted3","Restricted Items",Restricted3Text,RestrictedButtons)
- Restricted4 = menu.new("Restricted4","Restricted Items",Restricted4Text,RestrictedButtons)
- Restricted5 = menu.new("Restricted5","Restricted Items",Restricted5Text,RestrictedButtons)
- Rules1 = menu.new("Rules1", "Server Rules",Rules1,RulesButtons)
- Rules2 = menu.new("Rules2", "Server Rules",Rules2,RulesButtons)
- Rules3 = menu.new("Rules3", "Server Rules",Rules3,RulesButtons)
- Help = menu.new("Help", "Help",HelpText,MainButtons)
- Servers = menu.new("Servers", "Crafterlsland Servers",ServersText,ServerButtons)
- Network = menu.new("Network", "The Network Servers",NetworkText,ServerButtons)
- Direwolf20 = menu.new("Direwolf20", "The Direwolf20 Servers",Direwolf20Text,ServerButtons)
- Tekkit = menu.new("Tekkit", "The Tekkit Server",TekkitText,ServerButtons)
- Infinity = menu.new("Infinity", "The Infinity Evolved Server",InfinityText,ServerButtons)
- Skyfactory = menu.new("Skyfactory", "The SkyFactory Servers",SkyfactoryText,ServerButtons)
- -- A list of all the menues that is returned when requiring the file
- menues = {
- ["Home"]=Home,
- ["Info"]=Info,
- --["Claims1"]=Claims1,
- --["Claims2"]=Claims2,
- --["Claims3"]=Claims3,
- ["Forum"]=Forum,
- ["Donation"]=Donation,
- ["Economy"]=Economy,
- ["Ranks"]=Ranks,
- ["Donors"]=Donors,
- ["Staff"]=Staff,
- --["Restricted1"]=Restricted1,
- --["Restricted2"]=Restricted2,
- --["Restricted3"]=Restricted3,
- --["Restricted4"]=Restricted4,
- --["Restricted5"]=Restricted5,
- ["Rules1"]=Rules1,
- ["Rules2"]=Rules2,
- ["Rules3"]=Rules3,
- ["Help"]=Help,
- ["Servers"]=Servers,
- ["Network"]=Network,
- ["Direwolf20"]=Direwolf20,
- ["Tekkit"]=Tekkit,
- ["Infinity"]=Infinity,
- ["Skyfactory"]=Skyfactory
- }
- return menues
Add Comment
Please, Sign In to add comment