Skip to content

Commit

Permalink
Restore original software name in rest of copyright headers
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Dec 24, 2022
1 parent 0511fa6 commit f2ce59e
Show file tree
Hide file tree
Showing 43 changed files with 115 additions and 112 deletions.
2 changes: 1 addition & 1 deletion CLI/Program.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion GUI/Popups/CustomCommands.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
Expand Down
2 changes: 1 addition & 1 deletion GUI/Program.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.Chat.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
Expand Down
2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.Commands.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
Expand Down
2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.Games.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
Expand Down
2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.General.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
Expand Down
2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.Misc.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
Expand Down
2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.Ranks.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
Expand Down
2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.Relay.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
Expand Down
2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.Security.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
Expand Down
2 changes: 1 addition & 1 deletion GUI/PropertyWindow/PropertyWindow.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
not use this file except in compliance with the Licenses. You may
Expand Down
2 changes: 1 addition & 1 deletion GUI/Window/Window.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion GUI/Window/Window.Log.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion GUI/Window/Window.Main.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion GUI/Window/Window.Map.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion GUI/Window/Window.Players.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
2 changes: 1 addition & 1 deletion GUI/Window/Window.cs
@@ -1,5 +1,5 @@
/*
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCGalaxy)
Copyright 2010 MCSharp team (Modified for use with MCZall/MCLawl/MCForge)
Dual-licensed under the Educational Community License, Version 2.0 and
the GNU General Public License, Version 3 (the "Licenses"); you may
Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/BlockDB/BlockDB.cs
Expand Up @@ -20,10 +20,10 @@
using MCGalaxy.Util;
using MCGalaxy.Maths;

namespace MCGalaxy.DB {
public unsafe sealed class BlockDB {
namespace MCGalaxy.DB
{
public unsafe sealed class BlockDB
{
/// <summary> Dimensions used to pack coordinates into an index. </summary>
/// <remarks> May be different from actual level's dimensions, such as when the level has been resized. </remarks>
public Vec3U16 Dims;
Expand Down
12 changes: 6 additions & 6 deletions MCGalaxy/Database/BlockDB/BlockDBCache.cs
Expand Up @@ -19,11 +19,11 @@
using MCGalaxy.Maths;
using BlockID = System.UInt16;

namespace MCGalaxy.DB {
namespace MCGalaxy.DB
{
/// <summary> Optimised in-memory BlockDB cache. </summary>
public sealed class BlockDBCache {

public sealed class BlockDBCache
{
public BlockDBCacheNode Tail, Head;

/// <summary> Used to synchronise adding to Cache by multiple threads. </summary>
Expand Down Expand Up @@ -105,8 +105,8 @@ public sealed class BlockDBCache {
int nextSize = 10 * 1000;
}

public sealed class BlockDBCacheNode {

public sealed class BlockDBCacheNode
{
public BlockDBCacheNode Prev, Next;

/// <summary> The number of actually used entries within this particular node. </summary>
Expand Down
9 changes: 4 additions & 5 deletions MCGalaxy/Database/BlockDB/BlockDBChange.cs
Expand Up @@ -17,14 +17,13 @@
*/
using System;
using MCGalaxy.Blocks.Extended;
using MCGalaxy.SQL;
using BlockID = System.UInt16;

namespace MCGalaxy.DB {
namespace MCGalaxy.DB
{
/// <summary> Outputs information about a block and its changes to the user. </summary>
public static class BlockDBChange {
public static class BlockDBChange
{
public static void Output(Player p, string name, BlockDBEntry e) {
BlockID oldBlock = e.OldBlock, newBlock = e.NewBlock;
DateTime time = BlockDB.Epoch.AddSeconds(e.TimeDelta);
Expand Down
7 changes: 4 additions & 3 deletions MCGalaxy/Database/BlockDB/BlockDBEntry.cs
Expand Up @@ -19,10 +19,11 @@
using System.Runtime.InteropServices;
using BlockID = System.UInt16;

namespace MCGalaxy.DB {

namespace MCGalaxy.DB
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct BlockDBEntry {
public struct BlockDBEntry
{
/// <summary> ID within Players table of player who made the change. </summary>
public int PlayerID;

Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/BlockDB/BlockDBFile.V1.cs
Expand Up @@ -19,10 +19,10 @@
using System.IO;
using MCGalaxy.Util;

namespace MCGalaxy.DB {
public unsafe sealed class BlockDBFile_V1 : BlockDBFile {

namespace MCGalaxy.DB
{
public unsafe sealed class BlockDBFile_V1 : BlockDBFile
{
public override void WriteEntries(Stream s, FastList<BlockDBEntry> entries) {
byte[] bulk = new byte[BulkEntries * EntrySize];
for (int i = 0; i < entries.Count; i += BulkEntries) {
Expand Down
7 changes: 4 additions & 3 deletions MCGalaxy/Database/BlockDB/BlockDBFile.V2.cs
Expand Up @@ -19,9 +19,10 @@
using System.IO;
using MCGalaxy.Util;

namespace MCGalaxy.DB {

public unsafe sealed class BlockDBFile_V2 : BlockDBFile {
namespace MCGalaxy.DB
{
public unsafe sealed class BlockDBFile_V2 : BlockDBFile
{
const int BlockSize = BlockDBFile.BulkEntries;

/* TODO: Last chunk in file may only be partially filled. need to prepend these entries when compressing more. */
Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/BlockDB/BlockDBFile.cs
Expand Up @@ -20,10 +20,10 @@
using MCGalaxy.Maths;
using MCGalaxy.Util;

namespace MCGalaxy.DB {
public unsafe abstract class BlockDBFile {

namespace MCGalaxy.DB
{
public unsafe abstract class BlockDBFile
{
public const byte Version = 1;
public const int EntrySize = 16;
public const int HeaderEntries = 1;
Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/BlockDB/BlockDBTableDumper.cs
Expand Up @@ -23,11 +23,11 @@
using MCGalaxy.SQL;
using MCGalaxy.Util;

namespace MCGalaxy.DB {
namespace MCGalaxy.DB
{
/// <summary> Exports a BlockDB table to the new binary format. </summary>
public sealed class BlockDBTableDumper {

public sealed class BlockDBTableDumper
{
string mapName;
Dictionary<string, int> nameCache = new Dictionary<string, int>();
Stream stream;
Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/BlockDB/DBUpgrader.cs
Expand Up @@ -20,10 +20,10 @@
using MCGalaxy.Events.PlayerEvents;
using MCGalaxy.SQL;

namespace MCGalaxy.DB {
public static class DBUpgrader {

namespace MCGalaxy.DB
{
public static class DBUpgrader
{
public static bool Upgrading = false;
public static string[] CompactMessages = new string[] {
" If you are using SQLite, It is recommended that you compact the database by either:",
Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/BlockDB/NameConverter.cs
Expand Up @@ -19,11 +19,11 @@
using System.Collections.Generic;
using MCGalaxy.SQL;

namespace MCGalaxy.DB {
namespace MCGalaxy.DB
{
/// <summary> Converts names to integer ids and back </summary>
public static class NameConverter {

public static class NameConverter
{
// NOTE: this restriction is due to BlockDBCacheEntry
public const int MaxPlayerID = 0x00FFFFFF;

Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/PlayerDB.cs
Expand Up @@ -20,11 +20,11 @@
using System.IO;
using MCGalaxy.SQL;

namespace MCGalaxy.DB {
namespace MCGalaxy.DB
{
/// <summary> Stores per-player persistent data. </summary>
public static class PlayerDB {

public static class PlayerDB
{
static string LoginPath(string name) { return "text/login/" + name.ToLower() + ".txt"; }
static string LogoutPath(string name) { return "text/logout/" + name.ToLower() + ".txt"; }

Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/PlayerData.cs
Expand Up @@ -18,11 +18,11 @@
using System;
using MCGalaxy.SQL;

namespace MCGalaxy.DB {
namespace MCGalaxy.DB
{
/// <summary> Retrieves or sets player stats in the database. </summary>
public class PlayerData {

public class PlayerData
{
public const string ColumnDeaths = "totalDeaths";
public const string ColumnLogins = "totalLogin";
public const string ColumnMoney = "Money";
Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/Stats/OfflineStat.cs
Expand Up @@ -18,13 +18,13 @@
using System;
using System.Collections.Generic;

namespace MCGalaxy.DB {
namespace MCGalaxy.DB
{
public delegate void OfflineStatPrinter(Player p, PlayerData who);

/// <summary> Prints stats for an offline player in /info. </summary>
public static class OfflineStat {

public static class OfflineStat
{
/// <summary> List of stats that can be output to /info. </summary>
public static List<OfflineStatPrinter> Stats = new List<OfflineStatPrinter>() {
CoreLine,
Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/Stats/OnlineStat.cs
Expand Up @@ -21,13 +21,13 @@
using MCGalaxy.Eco;
using MCGalaxy.Modules.Awards;

namespace MCGalaxy.DB {

namespace MCGalaxy.DB
{
public delegate void OnlineStatPrinter(Player p, Player who);

/// <summary> Prints stats for an online player in /info. </summary>
public static class OnlineStat {

public static class OnlineStat
{
/// <summary> List of stats that can be output to /info. </summary>
public static List<OnlineStatPrinter> Stats = new List<OnlineStatPrinter>() {
CoreLine,
Expand Down
8 changes: 4 additions & 4 deletions MCGalaxy/Database/Stats/TopStat.cs
Expand Up @@ -19,8 +19,8 @@
using System.Collections.Generic;
using MCGalaxy.SQL;

namespace MCGalaxy.DB {
namespace MCGalaxy.DB
{
/// <summary> Retrieves a title for a column. </summary>
/// <remarks> Title is displayed on a line before the values of that column. </remarks>
public delegate string TopStatTitle();
Expand All @@ -30,8 +30,8 @@ namespace MCGalaxy.DB {


/// <summary> Outputs ordered stats from a column in a database table. </summary>
public sealed class TopStat {

public sealed class TopStat
{
public readonly string Identifier, Table, Column, OrderBy;
public readonly TopStatTitle Title;
public readonly TopStatFormatter Formatter;
Expand Down

0 comments on commit f2ce59e

Please sign in to comment.